PHP 4.0 Bug #4340: Switch fails with empty variables

From: Date: Sat, 06 May 2000 11:25:51 +0000
Subject: PHP 4.0 Bug #4340: Switch fails with empty variables
Groups: php.dev 
Request: Send a blank email to php-dev+get-18477@lists.php.net to get a copy of this message
From: barmeier@barmeier.com Operating system: NT4 SP5 IIs4 PHP version: 4.0 Release Candidate 1 PHP Bug Type: Scripting Engine problem Bug description: Switch fails with empty variables Tho following script produces an undesired result if $k is never used before. switch ($k){ case '0': echo "OOPS nothing is equal to the charachter 0 ??"; break; default: echo "Everything is fine !"; break; }

« previous php.dev (#18477) next »