php-src/Zend/tests/list_002.phpt
2008-03-12 13:01:59 +00:00

21 lines
265 B
PHP

--TEST--
Testing full-reference on list()
--FILE--
<?php
error_reporting(E_ALL);
$a = new stdclass;
$b =& $a;
list($a, list($b)) = array($a, array($b));
var_dump($a, $b, $a === $b);
?>
--EXPECT--
object(stdClass)#1 (0) {
}
object(stdClass)#1 (0) {
}
bool(true)