|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70300 Syntactical inconsistency with new group use syntax
Submitted: 2015-08-19 03:04 UTC Modified: 2015-08-19 08:42 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 2 (50.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: marcio dot web2 at gmail dot com Assigned: laruence (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 7.0.0beta3 OS:
Private report: No CVE-ID: None
 [2015-08-19 03:04 UTC] marcio dot web2 at gmail dot com
Quoted from mailing list

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):


namespace foo;
use some\{ bar, baz }; // valid
use \some\{ bar, baz }; // invalid, should be valid


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-19 08:42 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 02:01:28 2024 UTC