ReflectionFunction fails to work with functions in fully qualified namespaces
| Bug #49092 | ReflectionFunction fails to work with functions in fully qualified namespaces | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2009-07-28 22:46 UTC | Modified: | 2009-08-01 01:45 UTC |
|
||||||||||
| From: | crystality at mail dot ru | Assigned: | ||||||||||||
| Status: | Closed | Package: | Reflection related | |||||||||||
| PHP Version: | 5.3.0 | OS: | Windows XP SP3 | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2009-07-28 22:46 UTC] 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 ...
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2009-08-01 01:45 UTC] jani@php.net