Re: [PHP4BETA] cvs: php4 /ext/standard/ string.c

From: Date: Thu, 01 Jun 2000 14:48:19 +0000
Subject: Re: [PHP4BETA] cvs: php4 /ext/standard/ string.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-16040@lists.php.net to get a copy of this message
|@@ -1155,7 +1155,8 @@ | *r=toupper((unsigned char)*r); | for(r_end = r + return_value->value.str.len - 1 ; r < r_end ; ) { | if(isspace((int)*r)) { |- *r=toupper((unsigned char)*++r); |+ r++; |+ *r=toupper((unsigned char)*r); | } else { | r++; | } You're incrementing 'r' in both conditions. Put r++ before if() and remove the 'else' block. Enjoy! Faisal

« previous php.version4 (#16040) next »