php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #65363 ; separates, does not terminate
Submitted: 2013-07-30 23:43 UTC Modified: 2013-07-31 10:14 UTC
From: TorrAB at Yahoo dot com Assigned:
Status: Wont fix Package: Scripting Engine problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2013-07-30 23:43 UTC] TorrAB at Yahoo dot com
Description:
------------
The ';' should not be required at the end of an IF clause, as in

if ($a > $b) {echo "a is greater than b";}
else {echo "a is NOT greater than b";}

if ($a > $b) {echo "a is greater than b"}
else {echo "a is NOT greater than b"}

should be correct.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-31 03:33 UTC] reeze@php.net
-Package: *Programming Data Structures +Package: Scripting Engine problem
 [2013-07-31 10:14 UTC] nikic@php.net
-Status: Open +Status: Wont fix
 [2013-07-31 10:14 UTC] nikic@php.net
Not going to happen
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 18:01:31 2024 UTC