From: Ilia Alshanetsky Date: Tue, 26 Sep 2006 15:40:59 +0000 (+0000) Subject: MFB: 64bit fix (Possible fix for bug #38961) X-Git-Tag: RELEASE_1_0_0RC1~1541 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea18d7ed7bbaabc0b40270bc3b7c1f780890f5d0;p=php MFB: 64bit fix (Possible fix for bug #38961) --- diff --git a/ext/standard/metaphone.c b/ext/standard/metaphone.c index 5f163eb6a6..6ba00cf151 100644 --- a/ext/standard/metaphone.c +++ b/ext/standard/metaphone.c @@ -25,9 +25,7 @@ #include "php.h" #include "php_metaphone.h" -static int metaphone(char *word, int word_len, int max_phonemes, char **phoned_word, int traditional); - -PHP_FUNCTION(metaphone); +static int metaphone(char *word, int word_len, long max_phonemes, char **phoned_word, int traditional); /* {{{ proto string metaphone(string text[, int phones]) Break english phrases down into their phonemes */ @@ -161,7 +159,7 @@ static char Lookahead(char *word, int how_far) /* {{{ metaphone */ -static int metaphone(char *word, int word_len, int max_phonemes, char **phoned_word, int traditional) +static int metaphone(char *word, int word_len, long max_phonemes, char **phoned_word, int traditional) { int w_idx = 0; /* point in the phonization we're at. */ int p_idx = 0; /* end of the phoned phrase */