|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: crystality at mail dot ru
New email:
PHP Version: OS:


 [2009-07-28 22:46 UTC] crystality at mail dot ru
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 ... 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2009-08-01 01:45 UTC]
Automatic comment from SVN on behalf of jani
Log: - Fixed bug #49092 (ReflectionFunction fails to work with functions in fully qualified namespaces)
 [2009-08-01 01:45 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Oct 28 00:03:33 2021 UTC