|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-08-31 18:20 UTC] w1djmartin at gmail dot com
[2020-08-31 18:22 UTC] requinix@php.net
-Status: Open
+Status: Not a bug
[2020-08-31 18:22 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
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 "{"