|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2020-04-18 15:28 UTC] cmb@php.net
[2020-04-21 13:15 UTC] cmb@php.net
-Assigned To:
+Assigned To: cmb
[2020-04-21 13:16 UTC] cmb@php.net
[2020-06-23 16:45 UTC] cmb@php.net
-Package: opcache
+Package: Reflection related
[2020-06-23 16:53 UTC] cmb@php.net
[2020-06-23 16:53 UTC] cmb@php.net
-Status: Assigned
+Status: Closed
[2020-06-23 17:31 UTC] cmb@php.net
[2020-06-24 08:09 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
Description: ------------ If OPcache is enabled, any changes to static properties are not recognized by ReflectionClass::getStaticProperties(); instead the original values are returned. This happens as of PHP 7.4. Test script: --------------- <?php class Foo { public static $bar = 'orig'; } Foo::$bar = 'new'; $rc = new ReflectionClass('Foo'); var_dump($rc->getStaticProperties()); ?> Expected result: ---------------- array(1) { ["bar"]=> string(3) "new" } Actual result: -------------- array(1) { ["bar"]=> string(4) "orig" }