summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2004-06-17 00:17:49 +0000
committerIlia Alshanetsky <iliaa@php.net>2004-06-17 00:17:49 +0000
commit23d71171cff6c330cc41553d485ae001951a4bbb (patch)
tree39fafbba04ee740124172cf250ca5ea0f8b12b4f
parent5232a5afea51e0cf996c67f6359ac3f810d4a7df (diff)
downloadphp-git-23d71171cff6c330cc41553d485ae001951a4bbb.tar.gz
Properly handly high ascii values in soundex().
-rw-r--r--ext/standard/soundex.c2
1 files changed, 1 insertions, 1 deletions
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 */