Edit report at http://bugs.php.net/bug.php?id=53910&edit=1
ID: 53910 Updated by: [email protected] Reported by: jwge at gmx dot net Summary: Allow semicolon on ending curly brackets! -Status: Open +Status: Wont fix Type: Feature/Change Request Package: *General Issues Operating System: all PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: No code -- even blank statements -- can exist outside of the namespace blocks if using the bracketed syntax. Our parser is complex enough without adding another corner case. Previous Comments: ------------------------------------------------------------------------ [2011-02-02 14:26:56] jwge at gmx dot net Description: ------------ Doing things stringently, i do close all Statements with a semicolon, which works everywhere as far I exoerienced. But using namespace statements with curly brackets, this produces an error: Fatal error: No code may exist outside of namespace {} in [test] on line 4 Test script: --------------- namespace X{ }; namespace Y{ } Expected result: ---------------- allow semicolon after curly bracket for namespace statements ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53910&edit=1
