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

From: Date: Wed, 21 Mar 2001 02:07:23 +0000
Subject: PHP 4.0 Bug #9566 Updated: error with switch() control structure syntax error reporting
Groups: php.dev 
Request: Send a blank email to php-dev+get-49579@lists.php.net to get a copy of this message
ID: 9566 User Update by: craigp@canada.com Status: Open Bug Type: Reproduceable crash Description: error with switch() control structure syntax error reporting Previous Comments: --------------------------------------------------------------------------- [2001-03-16 15:48:06] hholzgra@php.net for me 4.0.4pl1 gives a parse error on teh '"a:"' line --------------------------------------------------------------------------- [2001-03-05 15:49:46] craigp@canada.com 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! --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9566

« previous php.dev (#49579) next »