php.net |  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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lalex at msu dot net
New email:
PHP Version: OS:

 

 [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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-18 04:38 UTC] zeev
Fixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 15:01:29 2024 UTC