PHP 4.0 Bug #7268 Updated: list parse bug

From: Date: Thu, 19 Oct 2000 10:52:40 +0000
Subject: PHP 4.0 Bug #7268 Updated: list parse bug
Groups: php.dev 
Request: Send a blank email to php-dev+get-35509@lists.php.net to get a copy of this message
ID: 7268 Updated by: stas Reported By: paul.schaap@dingoblue.com.au Status: Closed Bug Type: Reproduceable crash Assigned To: Comments: Fixed in CVS. Previous Comments: --------------------------------------------------------------------------- [2000-10-18 06:28:22] stas@php.net 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. --------------------------------------------------------------------------- [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 (#35509) next »