ID: 34425 Updated by: [EMAIL PROTECTED] Reported By: htht at mail dot bg -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: Debian, Linux PHP Version: 4.4.0 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php . Previous Comments: ------------------------------------------------------------------------ [2005-09-08 12:15:33] htht at mail dot bg Description: ------------ There is problem with switch/case settlement, when the argument is number an the cases are strings; Reproduce code: --------------- $do = 0; switch ($do) { case 'add': print 'we add'; break; case 'upd': print 'we update'; break; default: // default display only print 'we only display'; break; } Expected result: ---------------- we only display Actual result: -------------- we add ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34425&edit=1