|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-02-03 18:58 UTC] stas@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 08:00:01 2025 UTC |
Description: ------------ The \ReflectionParameter->getClass()->getName() method returns a wrong value. It omits the leading namespace slash. Reproduce code: --------------- namespace A\B\C; class Bar {} namespace D; class Foo { function foo(\A\B\C\Bar $x) {} } $rm = new \ReflectionMethod('\D\Foo', 'foo'); $rp = $rm->getParameters(); echo $rp[0]->getClass()->getName(); Expected result: ---------------- \A\B\C\Bar Actual result: -------------- A\B\C\Bar