From 89caaeb87c4b9cc3d22bad99c8679941eff62dd1 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Tue, 18 Feb 2003 18:11:34 +0000 Subject: [PATCH] Fixed bug #21708 (ucfirst() trouble again) # this bug is related to bug #21689 --- ext/standard/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.50.1