|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-25 19:23 UTC] felipe@php.net
-Package: Arrays related
+Package: Scripting Engine problem
[2010-04-27 11:26 UTC] degeberg@php.net
-Status: Open
+Status: Bogus
[2010-04-27 11:26 UTC] degeberg@php.net
[2010-04-27 19:43 UTC] 1234ru at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 05 15:00:01 2025 UTC |
Description: ------------ When building switch() structure using arrays, if array is empty, first case always fires (while it should not) (version 5.2.12) Test script: --------------- $a = array(); switch($a) { case (isset($a['a']) ): echo 'If $a is empty, you should not see it'; break; default: echo 'Hello.'; break; }