Bug #12437: string incrementing is different from before

From: Date: Fri, 27 Jul 2001 22:43:53 +0000
Subject: Bug #12437: string incrementing is different from before
Groups: php.dev 
Request: Send a blank email to php-dev+get-61279@lists.php.net to get a copy of this message
From: jcrutch@allofe.net Operating system: Linux RH 7.1 PHP version: 4.0.6 PHP Bug Type: Strings related Bug description: string incrementing is different from before 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 bug report at: http://bugs.php.net/?id=12437&edit=1

« previous php.dev (#61279) next »