]> granicus.if.org Git - php/commitdiff
64bit fix (Possible fix for bug #38961)
authorIlia Alshanetsky <iliaa@php.net>
Tue, 26 Sep 2006 15:40:45 +0000 (15:40 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 26 Sep 2006 15:40:45 +0000 (15:40 +0000)
ext/standard/metaphone.c

index 5f163eb6a6d2afbd05b0312f61bf7b835ca249b2..6ba00cf15110466bf0ffc23dfb325569a943db45 100644 (file)
@@ -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 */