From: Ilia Alshanetsky Date: Thu, 17 Jun 2004 00:17:49 +0000 (+0000) Subject: Properly handly high ascii values in soundex(). X-Git-Tag: php-5.0.0~181 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23d71171cff6c330cc41553d485ae001951a4bbb;p=php Properly handly high ascii values in soundex(). --- diff --git a/ext/standard/soundex.c b/ext/standard/soundex.c index 4e0ac58e1d..5341d8a35d 100644 --- a/ext/standard/soundex.c +++ b/ext/standard/soundex.c @@ -74,7 +74,7 @@ PHP_FUNCTION(soundex) /* BUG: should also map here accented letters used in non */ /* English words or names (also found in English text!): */ /* esstsett, thorn, n-tilde, c-cedilla, s-caron, ... */ - code = toupper(str[i]); + code = toupper((int)(unsigned char)str[i]); if (code >= 'A' && code <= 'Z') { if (_small == 0) { /* remember first valid char */