summaryrefslogtreecommitdiff
path: root/tests/classes/static_properties_001.phpt
blob: 5772a0dbcc2854b6b1bed0079c237e28faa2b490 (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