php.net |  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
Votes:2
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
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
"


Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-19 08:42 UTC] laruence@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: laruence
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC