From: webmaster at ebv dot com dot br Operating system: case PHP version: 4.3.11 PHP Bug Type: Output Control Bug description: No out
Description: ------------ case no out 08 and 09 O Case não retorna! 08 e 09 Reproduce code: --------------- echo $atemes = '08'; switch($atemes) { case 01: echo $messql2 = 'Jan'; break; case 08: echo $messql2 = 'Aug'; break; case 09: echo $messql2 = 'Sep'; break; } Expected result: ---------------- case "01" ok --- "01" or "1" case "02" ok ... case "08" beeeeeee! NO!! (case 8 ok) --> 08 no 8 yes (only) case "09" beeeeeee! NO!! (case 9 ok) --> 09 no 9 yes (only) case "10" ok ... Actual result: -------------- echo "mes 1 ".$messql."<br>"; echo "atmes ".$atemes."<br>"; echo $atemes = '08'; switch($atemes) { case 01: echo $messql2 = 'Jan'; break; case 8: echo $messql2 = 'Aug'; break; case 9: echo $messql2 = 'Sep'; break; } -- Edit bug report at http://bugs.php.net/?id=33969&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33969&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33969&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33969&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33969&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33969&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33969&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33969&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33969&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33969&r=support Expected behavior: http://bugs.php.net/fix.php?id=33969&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33969&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33969&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33969&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33969&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33969&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33969&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33969&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33969&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33969&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33969&r=mysqlcfg