|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-04-23 23:14 UTC] felipe@php.net
-Package: *General Issues
+Package: Scripting Engine problem
[2010-06-08 13:55 UTC] tony2001@php.net
-Status: Open
+Status: Bogus
[2010-06-08 13:55 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 11:00:01 2025 UTC |
Description: ------------ When I use a variable value as a class name, the file namespace is not recognized. Test script: --------------- <?php namespace test; class Test{} new Test; $className = '\test\Test'; new $className; // this works $className = 'Test'; new $className; // this should work either, because this file declares the test namespace, but it does not recognize class Test. Expected result: ---------------- I expect to see no error. Actual result: -------------- Fatal error: Class 'Test' not found in ...