Bug #67876 [NEW]: output invalid

From: Date: Thu, 21 Aug 2014 04:15:40 +0000
Subject: Bug #67876 [NEW]: output invalid
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187211@lists.php.net to get a copy of this message
From: jaikeysarraf at gmail dot com Operating system: all PHP version: 5.5.15 Package: Output Control Bug Type: Bug Bug description:output invalid Description: ------------ here is my simple code : <?php $a=07; $b=08; if ($a>$b) { echo $a; } else { echo $b; } ?> this should output 8 but shows me 7 I don't know why but in other languages(java vb) answer is always 8 Test script: --------------- <?php $a=07; $b=08; if ($a>$b) { echo $a; } else { echo $b; } ?> Expected result: ---------------- should be 8 in output Actual result: -------------- 7 -- Edit bug report at https://bugs.php.net/bug.php?id=67876&edit=1 --

« previous php.bugs (#187211) next »