|
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 pierrick@php.net)bug_54804 (last revision 2011-05-19 10:46 UTC by pierrick@php.net) Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-05-19 12:46 UTC] pierrick@php.net
[2011-05-19 12:52 UTC] pierrick@php.net
-Assigned To:
+Assigned To: pierrick
[2011-05-19 12:57 UTC] pajoye@php.net
[2011-05-19 13:04 UTC] pierrick@php.net
[2011-05-20 01:20 UTC] felipe@php.net
[2011-05-20 01:21 UTC] felipe@php.net
-Status: Assigned
+Status: Closed
[2011-05-20 01:21 UTC] felipe@php.net
[2011-05-20 01:21 UTC] felipe@php.net
-Package: Compile Failure
+Package: Scripting Engine problem
[2012-04-18 09:50 UTC] laruence@php.net
[2012-07-24 23:41 UTC] rasmus@php.net
[2013-11-17 09:38 UTC] laruence@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07: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