|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesbug_54804_with_test.diff (last revision 2011-05-19 11:04 UTC by [email protected])bug_54804 (last revision 2011-05-19 10:46 UTC by [email protected]) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-19 12:46 UTC] [email protected]
[2011-05-19 12:52 UTC] [email protected]
-Assigned To:
+Assigned To: pierrick
[2011-05-19 12:57 UTC] [email protected]
[2011-05-19 13:04 UTC] [email protected]
[2011-05-20 01:20 UTC] [email protected]
[2011-05-20 01:21 UTC] [email protected]
-Status: Assigned
+Status: Closed
[2011-05-20 01:21 UTC] [email protected]
[2011-05-20 01:21 UTC] [email protected]
-Package: Compile Failure
+Package: Scripting Engine problem
[2012-04-18 09:50 UTC] [email protected]
[2012-07-24 23:41 UTC] [email protected]
[2013-11-17 09:38 UTC] [email protected]
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 05:00:01 2025 UTC |
Description: ------------ When importing namespace in a script using the __halt_compiler() function, the imported script must use the same type of declaration (bracketed namespace or unbracketed namespace). Test script: --------------- a.php ---- <?php namespace a; require_once 'b.php'; echo 'ok',PHP_EOL; __halt_compiler(); // Remove this line and the script will works. b.php ---- <?php namespace b\c {} namespace b\d {} Expected result: ---------------- ok Actual result: -------------- Fatal error: Cannot mix bracketed namespace declarations with unbracketed namespace declarations in b.php on line 2