#39876 [Com]: ReflectionParameter::getDeclaringFunction() not available
| From: | judas dot iscariote at gmail dot com | Date: | Tue, 19 Dec 2006 05:59:28 +0000 |
| Subject: | #39876 [Com]: ReflectionParameter::getDeclaringFunction() not available | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969374624@lists.php.net to get a copy of this message | ||
ID: 39876
Comment by: judas dot iscariote at gmail dot com
Reported By: bugs at php dot frankkleine dot de
Status: Open
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
either the docs needs fixing, or the #if MBO_0 's in php_reflection.c
needs to removed ;)
Previous Comments:
------------------------------------------------------------------------
[2006-12-18 21:16:02] bugs at php dot frankkleine dot de
Description:
------------
The manual states on
http://www.php.net/manual/en/language.oop5.reflection.php
that the
ReflectionParameter::getDeclaringFunction() method is available since
PHP 5.1.3. However this method is neither available in 5.1.4 nor in
5.2.
Reproduce code:
---------------
function test1($param) {}
$refParam = new ReflectionParameter('test1', 'param');
var_dump($refParam->getDeclaringFunction());
Expected result:
----------------
object(ReflectionFunction)[1]
public 'name' => 'test1' (length=5)
Actual result:
--------------
Fatal error: Call to undefined method
ReflectionParameter::getDeclaringFunction() in
E:\php\tests\reflection_parameter.php on line 4
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39876&edit=1