#49093 [Opn->Bgs]: ReflectionFunction fails to work with functions in fully qualified namespaces

From: Date: Tue, 28 Jul 2009 22:51:22 +0000
Subject: #49093 [Opn->Bgs]: ReflectionFunction fails to work with functions in fully qualified namespaces
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140404@lists.php.net to get a copy of this message
ID: 49093 User updated by: crystality at mail dot ru Reported By: crystality at mail dot ru -Status: Open +Status: Bogus Bug Type: Reflection related Operating System: Windows XP SP3 PHP Version: 5.3.0 New Comment: Since the php.net site bugged a bit, threw "Warning: Cannot modify header information - headers already sent by (output started at /home/Web/sites/php-bugs-web/include/auth.inc:30) in /home/Web/sites/php-bugs-web/report.php on line 195" and sent me my own bug-report, I've made this by mistake. Refer to 49092. Previous Comments: ------------------------------------------------------------------------ [2009-07-28 22:48:30] 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=49093&edit=1

« previous php.bugs (#140404) next »