PHP 4.0 Bug #7268 Updated: list parse bug

From: Date: Wed, 18 Oct 2000 10:28:22 +0000
Subject: PHP 4.0 Bug #7268 Updated: list parse bug
Groups: php.dev 
Request: Send a blank email to php-dev+get-35399@lists.php.net to get a copy of this message
ID: 7268 Updated by: stas Reported By: paul.schaap@dingoblue.com.au Status: Analyzed Bug Type: Reproduceable crash Assigned To: Comments: list($m,$n) = "" seems to drive Zend engine crazy. Should be fixed. Anyway, you should not do such things in you script - that's not a valid construct. Previous Comments: --------------------------------------------------------------------------- [2000-10-17 00:25:02] paul.schaap@dingoblue.com.au <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. --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7268

« previous php.dev (#35399) next »