Index: ext/standard/metaphone.c =================================================================== RCS file: /repository/php-src/ext/standard/metaphone.c,v retrieving revision 1.28.2.1.2.1 diff -u -p -d -r1.28.2.1.2.1 metaphone.c --- ext/standard/metaphone.c 26 Jun 2006 18:48:56 -0000 1.28.2.1.2.1 +++ ext/standard/metaphone.c 26 Sep 2006 22:10:54 -0000 @@ -25,7 +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); +static int metaphone(unsigned char *word, int word_len, int max_phonemes, char **phoned_word, int traditional); PHP_FUNCTION(metaphone); @@ -43,7 +43,7 @@ PHP_FUNCTION(metaphone) return; } - if (metaphone(str, str_len, phones, &result, 1) == 0) { + if (metaphone((unsigned char *)str, str_len, phones, &result, 1) == 0) { RETVAL_STRING(result, 0); } else { if (result) { @@ -161,7 +161,7 @@ static char Lookahead(char *word, int ho /* {{{ metaphone */ -static int metaphone(char *word, int word_len, int max_phonemes, char **phoned_word, int traditional) +static int metaphone(unsigned char *word, int word_len, int 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 */