|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-06-07 15:40 UTC] jwillfiji at gmail dot com
-PHP Version: 7.0.30
+PHP Version: 7.2.5
[2018-06-07 15:40 UTC] jwillfiji at gmail dot com
[2018-06-07 15:42 UTC] nikic@php.net
-Type: Bug
+Type: Feature/Change Request
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 19:00:01 2025 UTC |
Description: ------------ As of PHP 7.0, grouping items when important from namespaces became allowed, however this seems to be only when everything is from one namespace, and precludes allowing the shortened format if pulling multiple items from multiple namespaces. It is unclear if this was intended behavior, or if this is a bug. If this was intended, please change to request for this proposed functionality. Test script: --------------- namespace Foo; class f1{} class f2{} namespace Bar; class b1{} class b2{} namespace main; use Foo\{f1,f2}, Bar\{b1,b2}; >> PHP Parse error: Syntax error, unexpected ',', expecting ';' on line 1