|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-19 08:29 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 05:00:01 2025 UTC |
Description: ------------ Eval is ignored when execute import statement. Reproduce code: --------------- eval("import self::x as a;"); a::foobar::test(); --- namespace self::x; class foobar { static public function test() { print "Foobar!\n"; } } Expected result: ---------------- Foobar! Actual result: -------------- Fatal error: Class 'a::foobar' not found