|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-03 09:10 UTC] tony2001@php.net
[2007-07-11 22:07 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 04:00:01 2025 UTC |
Description: ------------ Static properties with default values do not appear in the result of ReflectionClass::getDefaultProperties(). Reproduce code: --------------- <?php class Foo { protected static $fooStatic = 'foo'; protected $foo = 'foo'; } $class = new ReflectionClass('Foo'); print_r($class->getDefaultProperties()); Expected result: ---------------- Array ( [fooStatic] => foo [foo] => foo ) Actual result: -------------- Array ( [foo] => foo )