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
 [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 Jul 14 08:01:28 2024 UTC