From 0a766591b882a6a986e704f48872380975c74a48 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 17 Jun 2004 00:17:52 +0000 Subject: [PATCH] MFH: Properly handly high ascii values in soundex(). --- ext/standard/soundex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.40.0