Bug #76425 [Opn]: Import Grouping from Multiple Namespaces

From: Date: Thu, 07 Jun 2018 15:40:34 +0000
Subject: Bug #76425 [Opn]: Import Grouping from Multiple Namespaces
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-215533@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76425&edit=1 ID: 76425 User updated by: jwillfiji at gmail dot com Reported by: jwillfiji at gmail dot com Summary: Import Grouping from Multiple Namespaces Status: Open Type: Bug Package: *Programming Data Structures -PHP Version: 7.0.30 +PHP Version: 7.2.5 Block user comment: N Private report: N New Comment: For what it's worth, I am running PHP 7.2.5-1 on Ubuntu 16.04.1. My guess is this effects all version from 7.0 onward. Previous Comments: ------------------------------------------------------------------------ [2018-06-07 15:34:36] jwillfiji at gmail dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76425&edit=1

« previous php.bugs (#215533) next »