|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-06-21 11:14 UTC] bwoebi@php.net
-Assigned To:
+Assigned To: bwoebi
[2018-06-25 13:04 UTC] nikic@php.net
[2018-06-25 13:04 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 17:00:02 2025 UTC |
Description: ------------ Inherited static properties shall be invariantly read from the same base source throughout the script life. However assigning a reference to an inherited static property it stops being connected to their parent and this the child and the property stop sharing their common value. Test script: --------------- class Test { public static $x = 0; } class Test2 extends Test { } Test2::$x = &$x; $x = 1; var_dump(Test::$x, Test2::$x); Expected result: ---------------- int(1) int(1) Actual result: -------------- int(0) int(1)