1--TEST--
2Inherited static properties cannot be separated from their reference set.
3--FILE--
4<?php
5class C { public static $p = 'original'; }
6class D extends C {	}
7class E extends D {	}
8
9echo "\nInherited static properties refer to the same value across classes:\n";
10var_dump(C::$p, D::$p, E::$p);
11
12echo "\nChanging one changes all the others:\n";
13D::$p = 'changed.all';
14var_dump(C::$p, D::$p, E::$p);
15
16echo "\nReferences cannot be used to split the properties:\n";
17$ref = 'changed.one';
18D::$p =& $ref;
19var_dump(C::$p, D::$p, E::$p);
20?>
21--EXPECT--
22Inherited static properties refer to the same value across classes:
23string(8) "original"
24string(8) "original"
25string(8) "original"
26
27Changing one changes all the others:
28string(11) "changed.all"
29string(11) "changed.all"
30string(11) "changed.all"
31
32References cannot be used to split the properties:
33string(11) "changed.one"
34string(11) "changed.one"
35string(11) "changed.one"
36