Req #47075 [Opn->Wfx]: catch doesn't allow for an empty statement
| From: | levim@php.net | Date: | Wed, 16 Apr 2014 23:28:37 +0000 |
| Subject: | Req #47075 [Opn->Wfx]: catch doesn't allow for an empty statement | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185311@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=47075&edit=1
ID: 47075
Updated by: levim@php.net
Reported by: p at nic dot com dot pl
Summary: catch doesn't allow for an empty statement
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: linux
PHP Version: 5.2.8
Block user comment: N
Private report: N
New Comment:
Something like this would alter the parser and need a 2/3 vote on a PHP RFC.
Previous Comments:
------------------------------------------------------------------------
[2009-01-12 12:13:50] p at nic dot com dot pl
Description:
------------
catch requires empty {} and not just ";"
Reproduce code:
---------------
try { statement } catch (exception); is not allowed: PHP Parse error: syntax error, unexpected
';', expecting '{'
Expected result:
----------------
try { statement } catch (exception); should work (catch exception, do
nothing) exactly like try { statement } catch (exception) {}; does.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=47075&edit=1