php-src/tests/classes/static_properties_001.phpt
2003-09-04 16:00:01 +00:00

28 lines
364 B
PHP
Executable File

--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