Req #53910 [Opn->Wfx]: Allow semicolon on ending curly brackets!

From: Date: Fri, 04 Feb 2011 10:58:18 +0000
Subject: Req #53910 [Opn->Wfx]: Allow semicolon on ending curly brackets!
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-158478@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53910&edit=1 ID: 53910 Updated by: aharvey@php.net 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

« previous php.bugs (#158478) next »