|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-08 12:51 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 02:00:01 2025 UTC |
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