|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-06-03 20:15 UTC] titch at tut dot by
[2012-06-03 22:03 UTC] mail+php at requinix dot net
[2012-06-03 22:07 UTC] titch at tut dot by
[2012-06-03 22:07 UTC] titch at tut dot by
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 23 02:00:01 2025 UTC |
Description: ------------ if namespace defined, ReflectionObject can't find class by name with namespace prefix [Sun Jun 03 22:56:50 2012] [error] [client 127.0.0.1] PHP Fatal error: Class 'MyProject\\ReflectionObject' not found in /var/www/myproject/MyClass.php on line 6 also namespaces doesn't works with ReflectionClass etc. but all those scripts work without namespace Test script: --------------- //500 Internal Server Error <?php namespace MyProject; class MyClass { function ff(){ a = new ReflectionObject($this); echo 'it works'; } } $a = new MyClass(); $a->ff(); ?>