Bug #70300 [Opn->Csd]: Syntactical inconsistency with new group use syntax

From: Date: Wed, 19 Aug 2015 08:42:17 +0000
Subject: Bug #70300 [Opn->Csd]: Syntactical inconsistency with new group use syntax
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195328@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70300&edit=1 ID: 70300 Updated by: laruence@php.net Reported by: marcio dot web2 at gmail dot com Summary: Syntactical inconsistency with new group use syntax -Status: Open +Status: Closed Type: Bug Package: Scripting Engine problem PHP Version: 7.0.0beta3 -Assigned To: +Assigned To: laruence Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2015-08-19 08:42:06] laruence@php.net fixed in https://github.com/php/php-src/commit/574e8966a467de7777495974d89141444e722637 ------------------------------------------------------------------------ [2015-08-19 03:04:51] marcio dot web2 at gmail dot com Description: ------------ Quoted from mailing list http://news.php.net/php.internals/87774: " With the new group syntax, the version with a leading \ is considered invalid - a lint will PHP Parse error: syntax error, unexpected '{', expecting identifier (T_STRING): <?php namespace foo; use some\{ bar, baz }; // valid use \some\{ bar, baz }; // invalid, should be valid " ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70300&edit=1

« previous php.bugs (#195328) next »