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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
48 + 25 = ?
Subscribe to this entry?

 
 [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: Thu May 02 06:01:32 2024 UTC