php-src/Zend/tests/list_001.phpt
2016-05-20 01:51:05 +02:00

21 lines
318 B
PHP

--TEST--
"Nested" list()
--FILE--
<?php
list($a, list($b)) = array(new stdclass, array(new stdclass));
var_dump($a, $b);
[$a, [$b]] = array(new stdclass, array(new stdclass));
var_dump($a, $b);
?>
--EXPECT--
object(stdClass)#1 (0) {
}
object(stdClass)#2 (0) {
}
object(stdClass)#3 (0) {
}
object(stdClass)#4 (0) {
}