blob: 1c34f68fc55308bab6fea0103e675e45291c9d63 (
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
26
27
|
--TEST--
ZE2 Initializing static properties to arrays
--SKIPIF--
<?php if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 needed'); ?>
--FILE--
<?php
class test {
static public $ar = array();
}
var_dump(test::$ar);
test::$ar[] = 1;
var_dump(test::$ar);
echo "Done\n";
?>
--EXPECTF--
array(0) {
}
array(1) {
[0]=>
int(1)
}
Done
|