version 1.1.1.1, 2012/02/21 23:48:06
|
version 1.1.1.2, 2013/10/14 08:02:46
|
Line 6 class C { public static $p = 'original'; }
|
Line 6 class C { public static $p = 'original'; }
|
class D extends C { } |
class D extends C { } |
class E extends D { } |
class E extends D { } |
|
|
echo "\nInherited static properties refer to the same value accross classes:\n"; | echo "\nInherited static properties refer to the same value across classes:\n"; |
var_dump(C::$p, D::$p, E::$p); |
var_dump(C::$p, D::$p, E::$p); |
|
|
echo "\nChanging one changes all the others:\n"; |
echo "\nChanging one changes all the others:\n"; |
Line 20 var_dump(C::$p, D::$p, E::$p);
|
Line 20 var_dump(C::$p, D::$p, E::$p);
|
?> |
?> |
==Done== |
==Done== |
--EXPECTF-- |
--EXPECTF-- |
Inherited static properties refer to the same value accross classes: | Inherited static properties refer to the same value across classes: |
%unicode|string%(8) "original" |
%unicode|string%(8) "original" |
%unicode|string%(8) "original" |
%unicode|string%(8) "original" |
%unicode|string%(8) "original" |
%unicode|string%(8) "original" |