|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-04-16 23:28 UTC] levim@php.net
-Status: Open
+Status: Wont fix
-Package: Feature/Change Request
+Package: *General Issues
[2014-04-16 23:28 UTC] levim@php.net
[2014-04-16 23:28 UTC] levim@php.net
-Operating System: linux
+Operating System: Irrelevant
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 30 10:00:01 2025 UTC |
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.