mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
26 lines
255 B
PHP
26 lines
255 B
PHP
--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
|