cvs: php4 /ext/standard/ string.c

From: Date: Thu, 01 Jun 2000 14:56:28 +0000
Subject: cvs: php4 /ext/standard/ string.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-16039@lists.php.net to get a copy of this message
jah Thu Jun 1 07:56:28 2000 EDT Modified files: /php4/ext/standard string.c Log: (ucwords) Remove unnecessary code. # Didn't keep my promise to stop... Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.121 php4/ext/standard/string.c:1.122 --- php4/ext/standard/string.c:1.121 Thu Jun 1 07:40:41 2000 +++ php4/ext/standard/string.c Thu Jun 1 07:56:28 2000 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.121 2000/06/01 14:40:41 jah Exp $ */ +/* $Id: string.c,v 1.122 2000/06/01 14:56:28 jah Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -1154,11 +1154,8 @@ r=return_value->value.str.val; *r=toupper((unsigned char)*r); for(r_end = r + return_value->value.str.len - 1 ; r < r_end ; ) { - if(isspace((int)*r)) { - r++; + if(isspace((int)*r++)) { *r=toupper((unsigned char)*r); - } else { - r++; } } }

« previous php.version4 (#16039) next »