PHP 4.0 Bug #6011: switch() dont go in default: if the switch is empty except default:

From: Date: Mon, 07 Aug 2000 22:12:10 +0000
Subject: PHP 4.0 Bug #6011: switch() dont go in default: if the switch is empty except default:
Groups: php.dev 
Request: Send a blank email to php-dev+get-28052@lists.php.net to get a copy of this message
From: marc@dmh.qc.ca Operating system: Mandrake 7.1 i686 PHP version: 4.0.1pl2 PHP Bug Type: Scripting Engine problem Bug description: switch() dont go in default: if the switch is empty except default: In this example, if $part is empty, the default: will be process, but if it have something in it, It dont do nothing, it skip the default: and continue switch ($part) { default: include ( "html/menu-main-html.inc" ); }

« previous php.dev (#28052) next »