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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Thu Mar 28 18:01:29 2024 UTC