cvs: php4 /ext/standard string.c

From: Date: Tue, 18 Feb 2003 18:11:35 +0000
Subject: cvs: php4 /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18952@lists.php.net to get a copy of this message
moriyoshi Tue Feb 18 13:11:35 2003 EDT Modified files: /php4/ext/standard string.c Log: Fixed bug #21708 (ucfirst() trouble again) # this bug is related to bug #21689 Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.358 php4/ext/standard/string.c:1.359 --- php4/ext/standard/string.c:1.358 Fri Feb 14 13:59:50 2003 +++ php4/ext/standard/string.c Tue Feb 18 13:11:34 2003 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.358 2003/02/14 18:59:50 moriyoshi Exp $ */ +/* $Id: string.c,v 1.359 2003/02/18 18:11:34 moriyoshi Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -2019,7 +2019,7 @@ *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); } }

« previous php.cvs (#18952) next »