#12437 [Com]: string incrementing is different from before

From: Date: Tue, 20 Jul 2004 15:11:48 +0000
Subject: #12437 [Com]: string incrementing is different from before
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-63069@lists.php.net to get a copy of this message
ID: 12437 Comment by: fulltime-guide1641 at hotmail dot com Reported By: jcrutch at allofe dot net Status: Bogus Bug Type: Strings related Operating System: Linux RH 7.1 PHP Version: 4.0.6 New Comment: <a href=http://fulltimeuniform-sex.da.ru>fulltime guide</a> Previous Comments: ------------------------------------------------------------------------ [2001-07-31 09:23:37] andy@php.net no bug here... ------------------------------------------------------------------------ [2001-07-27 18:43:53] jcrutch at allofe dot net when incrementing a numerical string with leading zeros with the '++' operator, the result is different in 4.0.6 than in eariler version of PHP. for example: for($i="01";$i<="10";$i++) { echo $i." "; } in 4.0.5 the output was >>> 01 02 03 04 05 06 07 08 09 10 but in 4.0.6 the output is >>> 01 2 3 4 5 6 7 8 9 10 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12437&edit=1

« previous php.bugs (#63069) next »