|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #184 'if' in conjunction with 'for'
Submitted: 1998-03-17 21:14 UTC Modified: 1998-03-18 04:38 UTC
From: lalex at msu dot net Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0b6 OS: Linux RH-4.2(2.0.33)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
20 + 5 = ?
Subscribe to this entry?

 [1998-03-17 21:14 UTC] lalex at msu dot net
The following code generate parse error:
   if ( true ) {
     for ($i = 0; $i < 10; $i++)  
       if ( true )  
         echo "$i";     
Without first or second 'if' statement everything is ok.
Also there are no any errors without braces.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-18 04:38 UTC] zeev
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sun Sep 24 08:01:25 2023 UTC