|
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-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jan 08 16:00:02 2026 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