|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-11-27 03:33 UTC] laruence@php.net
[2015-11-27 03:33 UTC] laruence@php.net
-Status: Open
+Status: Closed
[2016-07-20 11:35 UTC] davey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 20:00:01 2025 UTC |
Description: ------------ none Test script: --------------- <?php class Foo { static $abc; function __construct() { var_dump(static::$abc); } } class Bar extends Foo { } $rf = new ReflectionClass('Bar'); $rf->setStaticPropertyValue('abc', 'hi'); $foo = $rf->newInstance(); Expected result: ---------------- string(2) "hi" Actual result: -------------- NULL