PHP 4.0 Bug #7268: list parse bug

From: Date: Tue, 17 Oct 2000 04:25:02 +0000
Subject: PHP 4.0 Bug #7268: list parse bug
Groups: php.dev 
Request: Send a blank email to php-dev+get-35220@lists.php.net to get a copy of this message
From: paul.schaap@dingoblue.com.au Operating system: Linux PHP version: 4.0.3pl1 PHP Bug Type: Reproduceable crash Bug description: list parse bug <HTML> <HEAD><TITLE>list bug</TITLE></HEAD> <BODY BGCOLOR=White> <TABLE BORDER=1> <?php $a = "Yes"; $b = "no"; if("x" == "y"){ list($m,$n) = ""; } print "<TR><TD>$a</TD><TD>$b</TD></TR>\n"; ?> </TABLE> </BODY> </HTML> The above script when *repeatedly* called gives inconsistent results. Even though the list() function is not actually called it causes the problem (and yes I know its bad syntax) so I presume this is a bug with the parsing engine ! Included modules and settings do not seem to alter the behaviour. -- Edit Bug report at: http://bugs.php.net/?id=7268&edit=1

« previous php.dev (#35220) next »