php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7268 list parse bug
Submitted: 2000-10-17 00:25 UTC Modified: 2000-10-19 06:52 UTC
From: paul dot schaap at dingoblue dot com dot au Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.3pl1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: paul dot schaap at dingoblue dot com dot au
New email:
PHP Version: OS:

 

 [2000-10-17 00:25 UTC] paul dot schaap at dingoblue dot com dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-18 06:28 UTC] 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-19 06:52 UTC] stas@php.net
Fixed in CVS.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 06:00:01 2026 UTC