Bug #80224 [NEW]: namespaced import alias inconsistent

From: Date: Mon, 12 Oct 2020 11:14:41 +0000
Subject: Bug #80224 [NEW]: namespaced import alias inconsistent
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229562@lists.php.net to get a copy of this message
From: xigal18570 at jarilusua dot com Operating system: linux PHP version: 8.0.0rc1 Package: *General Issues Bug Type: Bug Bug description:namespaced import alias inconsistent Description: ------------ Maybe the description is missing here: https://wiki.php.net/rfc/namespaced_names_as_token Test script: --------------- <?php use \Foo\Bar2; // valid use\Foo\Bar3; // valid use \Foo\Bar4 as Bar44; // valid use\Foo\Bar5 as Bar55; // invalid Expected result: ---------------- last variant being valid as well Actual result: -------------- $ sudo docker-compose run --rm --user "$(id --user):$(id --group)" php php test.php Parse error: syntax error, unexpected token "as" in /app/test.php on line 6 -- Edit bug report at https://bugs.php.net/bug.php?id=80224&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80224&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80224&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80224&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80224&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80224&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80224&r=support Expected behavior: https://bugs.php.net/fix.php?id=80224&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80224&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80224&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80224&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80224&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80224&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80224&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80224&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80224&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80224&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80224&r=mysqlcfg

« previous php.bugs (#229562) next »