mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00
Make it compile again
This commit is contained in:
parent
e1b5df4b55
commit
d69ec49dc6
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,7 @@
|
||||||
PHP_FUNCTION(soundex)
|
PHP_FUNCTION(soundex)
|
||||||
{
|
{
|
||||||
char *somestring;
|
char *somestring;
|
||||||
int i, small, len;
|
int i, small, len, code, last;
|
||||||
pval *arg;
|
pval *arg;
|
||||||
char soundex[4 + 1];
|
char soundex[4 + 1];
|
||||||
|
|
||||||
|
@ -72,6 +72,7 @@ PHP_FUNCTION(soundex)
|
||||||
len = arg->value.str.len;
|
len = arg->value.str.len;
|
||||||
|
|
||||||
/* build soundex string */
|
/* build soundex string */
|
||||||
|
last = -1;
|
||||||
for (i = 0, small = 0; i < len && small < 4; i++) {
|
for (i = 0, small = 0; i < len && small < 4; i++) {
|
||||||
/* convert chars to upper case and strip non-letter chars */
|
/* convert chars to upper case and strip non-letter chars */
|
||||||
/* BUG: should also map here accented letters used in non */
|
/* BUG: should also map here accented letters used in non */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue