From: Ilia Alshanetsky Date: Thu, 17 Jun 2004 00:17:52 +0000 (+0000) Subject: MFH: Properly handly high ascii values in soundex(). X-Git-Tag: php-4.3.9RC1~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0a766591b882a6a986e704f48872380975c74a48;p=php MFH: Properly handly high ascii values in soundex(). --- diff --git a/ext/standard/soundex.c b/ext/standard/soundex.c index 7dc86b066f..27a8399cd8 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 */