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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marcio dot web2 at gmail dot com
New email:
PHP Version: OS:

 

 [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-2025 The PHP Group
All rights reserved.
Last updated: Mon Feb 03 15:01:31 2025 UTC