ID: 49092 Updated by: j...@php.net Reported By: crystality at mail dot ru -Status: Open +Status: Closed Bug Type: Reflection related Operating System: Windows XP SP3 PHP Version: 5.3.0 New Comment:
This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2009-08-01 01:45:23] s...@php.net Automatic comment from SVN on behalf of jani Revision: http://svn.php.net/viewvc/?view=revision&revision=286611 Log: - Fixed bug #49092 (ReflectionFunction fails to work with functions in fully qualified namespaces) ------------------------------------------------------------------------ [2009-07-28 22:46:03] crystality at mail dot ru Description: ------------ Just about the same bug I've reported in #47593 This time ReflectionFunction fails to work with functions with fully qualified namespaces. Reproduce code: --------------- namespace ns; function func(){} //new \ReflectionFunction('ns\func'); //Works new \ReflectionFunction('\ns\func'); //Throws exception Expected result: ---------------- new ReflectionFunction object created Actual result: -------------- Fatal error: Uncaught exception 'ReflectionException' with message 'Function \ns\func() does not exist' in ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49092&edit=1