|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-12-07 12:52 UTC] rjrjdjdu at dfjdrj dot com
[2020-12-07 12:56 UTC] peehaa@php.net
-Status: Open
+Status: Not a bug
[2020-12-07 12:56 UTC] peehaa@php.net
[2020-12-07 13:04 UTC] dharman@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 16:00:01 2025 UTC |
Description: ------------ When argument of switch is a int(0), switch choose a wrong statement. Test script: --------------- <?php $key = 0; switch ($key) { case 'a': echo 'break'; break; default: echo 'default'; break; } Expected result: ---------------- 'default' Actual result: -------------- 'break'