Bug #80041 [NEW]: Multi-line namespace no longer works with PHP 8

From: Date: Mon, 31 Aug 2020 18:16:58 +0000
Subject: Bug #80041 [NEW]: Multi-line namespace no longer works with PHP 8
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228824@lists.php.net to get a copy of this message
From: w1djmartin at gmail dot com Operating system: Windows 10 PHP version: 8.0.0beta2 Package: Class/Object related Bug Type: Bug Bug description:Multi-line namespace no longer works with PHP 8 Description: ------------ Prior to PHP 8 Beta 1 splitting a namespace across multiple lines would work without error. Starting with PHP 8 Beta 1 a namespace that is split across multiple lines results in a parse error/syntax error. Test script: --------------- namespace Foo \Bar \Baz; echo __NAMESPACE__; Expected result: ---------------- The test script should output: Foo\Bar\Baz Actual result: -------------- The test script throws an error: Parse error: syntax error, unexpected fully qualified name "\Bar", expecting "{" -- Edit bug report at https://bugs.php.net/bug.php?id=80041&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=80041&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=80041&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=80041&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=80041&r=needscript Try newer version: https://bugs.php.net/fix.php?id=80041&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=80041&r=support Expected behavior: https://bugs.php.net/fix.php?id=80041&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=80041&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=80041&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=80041&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=80041&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=80041&r=dst IIS Stability: https://bugs.php.net/fix.php?id=80041&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=80041&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=80041&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=80041&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=80041&r=mysqlcfg

« previous php.bugs (#228824) next »