xref: /PHP-7.3/Zend/tests/bug30140.phpt (revision 610c7fbe)
1--TEST--
2Bug #30140 (Problem with array in static properties)
3--FILE--
4<?php
5class A {
6	public static $test1 = true;
7	public static $test2 = array();
8	public static $test3 = "str";
9}
10
11class B extends A {
12}
13
14A::$test1 = "x";
15A::$test2 = "y";
16A::$test3 = "z";
17var_dump(A::$test1);
18var_dump(A::$test2);
19var_dump(A::$test3);
20var_dump(B::$test1);
21var_dump(B::$test2);
22var_dump(B::$test3);
23?>
24--EXPECT--
25string(1) "x"
26string(1) "y"
27string(1) "z"
28string(1) "x"
29string(1) "y"
30string(1) "z"
31