From: Moriyoshi Koizumi Date: Tue, 18 Feb 2003 18:11:34 +0000 (+0000) Subject: Fixed bug #21708 (ucfirst() trouble again) X-Git-Tag: RELEASE_0_5~905 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89caaeb87c4b9cc3d22bad99c8679941eff62dd1;p=php Fixed bug #21708 (ucfirst() trouble again) # this bug is related to bug #21689 --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 543715df93..7a188f9cae 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -2019,7 +2019,7 @@ PHP_FUNCTION(ucwords) *r = toupper((unsigned char) *r); for (r_end = r + Z_STRLEN_P(return_value) - 1; r < r_end; ) { - if (isspace((int) *r++)) { + if (isspace((int) *(unsigned char *)r++)) { *r = toupper((unsigned char) *r); } }