[PHP-DEV] PHP 4.0 Bug #4340: Switch fails with empty variables From: barmeier <email protected>
Date: 05/06/00

From: barmeier <email protected>
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;
}

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>