Bug #70300 [Opn]: Syntactical inconsistency with new group use syntax
| From: | laruence@php.net | Date: | Wed, 19 Aug 2015 08:42:07 +0000 |
| Subject: | Bug #70300 [Opn]: Syntactical inconsistency with new group use syntax | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195327@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
Type: Bug
Package: Scripting Engine problem
PHP Version: 7.0.0beta3
Block user comment: N
Private report: N
New Comment:
fixed in https://github.com/php/php-src/commit/574e8966a467de7777495974d89141444e722637
Previous Comments:
------------------------------------------------------------------------
[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