summaryrefslogtreecommitdiff
path: root/tests/classes/static_properties_001.phpt
blob: e5e545fa22c8960d8d2e467dfe287a3753f8fa26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
ZE2 Initializing static properties to arrays
--FILE--
<?php

class test {
	static public $ar = array();
}

var_dump(test::$ar);

test::$ar[] = 1;

var_dump(test::$ar);

echo "Done\n";
?>
--EXPECT--
array(0) {
}
array(1) {
  [0]=>
  int(1)
}
Done