|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2246 for(;;) no longer works right
Submitted: 1999-09-06 03:38 UTC Modified: 1999-09-06 16:25 UTC
From: mlemos at acm dot org Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0 Latest CVS (06/09/1999) OS: Linux RH 5.2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: mlemos at acm dot org
New email:
PHP Version: OS:


 [1999-09-06 03:38 UTC] mlemos at acm dot org
for(;;) no longer works right.

Code like as follows hangs forever.




Code like this gives a parser error.




<b>Parse error</b>:  parse error, expecting `';'' in <b>y.php</b> on line <b>3</b><br>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-06 16:25 UTC] andi at cvs dot php dot net
unset() is a statement and not an expression. It can't be used as an expression in the for expression. I don't think this worked with PHP 3.0 either.

PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Mon Oct 26 21:01:24 2020 UTC