From 2c09220992cb33e115b1efe0a36d6ce8243626dc Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Tue, 18 Feb 2003 18:14:32 +0000 Subject: [PATCH] MFH(r1.359): Fixed bug #21708 --- 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 b202f26008..762476f0a2 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1876,7 +1876,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