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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-03-18 04:38 UTC] zeev
Fixed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC