|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #67184 Allow THROW in expression context
Submitted: 2014-05-03 05:10 UTC Modified: 2016-06-28 18:55 UTC
From: vovan-ve at yandex dot ru Assigned:
Status: Open Package: Scripting Engine problem
PHP Version: Irrelevant OS:
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: vovan-ve at yandex dot ru
New email:
PHP Version: OS:


 [2014-05-03 05:10 UTC] vovan-ve at yandex dot ru
Currently, THROW is a statement. We are not allowed to write things like this:

        or throw new Exception(...)

It whould be nice to convert THROW from statement to unary operator.
Same things also can be applyed, for example, to RETURN, BREAK, CONTINUE and GOTO statements.

Right precedence for this operators should be discussed.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-06-28 18:55 UTC]
Related to bug #31627.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Jan 23 21:01:24 2020 UTC