|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18413 Cobination of nested IF statement fails
Submitted: 2002-07-18 11:47 UTC Modified: 2002-07-18 13:41 UTC
Avg. Score:3.7 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:0 (0.0%)
From: mark at pictura-dp dot nl Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: 4.2.1 OS: Linux SuSE 8.0
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.
Block user comment
Status: Assign to:
Bug Type:
From: mark at pictura-dp dot nl
New email:
PHP Version: OS:


 [2002-07-18 11:47 UTC] mark at pictura-dp dot nl
I think nothing's wrong with the following syntax:
    echo "No Bug :)";
    if($foo=="bug?") {
      echo "Bug :(";
    echo "No problem!";
But it results in a parse error, unexpected ':'.
Mark Lindeman
the Netherlands


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-18 13:41 UTC]
Don't mix styles. If you use the old, ugly style of 'if () : endif;' stick to that, but don't try mix it with 'if () { }'

PHP Copyright © 2001-2018 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC