diff options
Diffstat (limited to 'tests/classes/static_properties_004.phpt')
-rw-r--r-- | tests/classes/static_properties_004.phpt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/classes/static_properties_004.phpt b/tests/classes/static_properties_004.phpt index 265553f86d..42860c3301 100644 --- a/tests/classes/static_properties_004.phpt +++ b/tests/classes/static_properties_004.phpt @@ -1,5 +1,5 @@ --TEST-- -Inherited static properties can be separated from their reference set. +Inherited static properties cannot be separated from their reference set. --FILE-- <?php class C { public static $p = 'original'; } @@ -13,13 +13,13 @@ echo "\nChanging one changes all the others:\n"; D::$p = 'changed.all'; var_dump(C::$p, D::$p, E::$p); -echo "\nBut because this is implemented using PHP references, the reference set can easily be split:\n"; +echo "\nReferences cannot be used to split the properties:\n"; $ref = 'changed.one'; D::$p =& $ref; var_dump(C::$p, D::$p, E::$p); ?> ==Done== ---EXPECTF-- +--EXPECT-- Inherited static properties refer to the same value across classes: string(8) "original" string(8) "original" @@ -30,8 +30,8 @@ string(11) "changed.all" string(11) "changed.all" string(11) "changed.all" -But because this is implemented using PHP references, the reference set can easily be split: -string(11) "changed.all" +References cannot be used to split the properties: +string(11) "changed.one" +string(11) "changed.one" string(11) "changed.one" -string(11) "changed.all" ==Done== |