#39067 [Opn->Csd]: getDeclaringClass and private attrs
ID: 39067
Updated by: tony2001@php.net
Reported By: dave at dgx dot cz
-Status: Open
+Status: Closed
Bug Type: SPL related
PHP Version: 5.2.0RC5
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-10-06 17:15:17] dave at dgx dot cz
Description:
------------
ReflectionProperty::getDeclaringClass
Reproduce code:
---------------
class A {
private $x;
}
class B extends A {
private $x;
}
$rc = new ReflectionClass('B');
echo $rc->getProperty('x')->getDeclaringClass()->getName();
Expected result:
----------------
B
Actual result:
--------------
A
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39067&edit=1
Thread (2 messages)