PHP 4.0 Bug #9566: error with switch() control structure syntax error reporting

From: Date: Mon, 05 Mar 2001 20:49:46 +0000
Subject: PHP 4.0 Bug #9566: error with switch() control structure syntax error reporting
Groups: php.dev 
Request: Send a blank email to php-dev+get-47989@lists.php.net to get a copy of this message
From: craigp@canada.com Operating system: freeBSD PHP version: 4.0.4pl1 PHP Bug Type: Reproduceable crash Bug description: error with switch() control structure syntax error reporting If there is a syntax error in my switch control structure, my script returns a message pop-up 'The server returned an invalid or unrecognized response.', It seems that the syntax of the switch control structure is not checked properly before processing the script. this is my invalid switch structure (missing a 'case' statement): $varX = "a"; switch($varX){ "a": echo("a"); break; case "b": echo("b"); break; } check it out! -- Edit Bug report at: http://bugs.php.net/?id=9566&edit=1

« previous php.dev (#47989) next »