Bug #13828 Updated: switch problem

From: Date: Thu, 25 Oct 2001 21:12:08 +0000
Subject: Bug #13828 Updated: switch problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-69018@lists.php.net to get a copy of this message
ID: 13828 Updated by: jpm Reported By: happyclik_2000@yahoo.com Old Status: Closed Status: Bogus Bug Type: Scripting Engine problem Operating System: Red Hat 7.0 PHP Version: 4.0.6 New Comment: Not a bug -> bogus. --Joao Previous Comments: ------------------------------------------------------------------------ [2001-10-25 17:06:37] hholzgra@php.net not realy, as "a"==0 is true (opposed to "a"===0) ------------------------------------------------------------------------ [2001-10-25 16:35:30] happyclik_2000@yahoo.com The following print "ok". Isn't it a bug? $a = "a"; switch ($a) { case 0: echo "ok"; break; case "a": echo "a"; break; } ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=13828&edit=1

« previous php.dev (#69018) next »