|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-03-02 11:51 UTC] jani@php.net
-Status: Open
+Status: Bogus
-Package: *Compile Issues
+Package: *General Issues
[2010-03-02 11:51 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 02:00:01 2025 UTC |
Description: ------------ eval('use test\me\test as testme;'); doesn't work it produce Fatal error: Class 'testme' not found if I call the testme class Test script: --------------- //test.php <?php include './includes.php'; eval('use test\me\test as testme;'); $testme = new testme; //Includes.php <?php include './test.class.php'; function testme() { return 'test\me\test'; } //test.class.php <?php namespace test\me; class test { function __construct() { echo 'here is run'; } } Expected result: ---------------- There should be no error when i call the testme class Actual result: -------------- Fatal error occures