|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-06 17:35 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 08:00:02 2025 UTC |
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