php-src/Zend/tests/list_002.phpt

21 lines
265 B
Plaintext
Raw Normal View History

2008-03-12 21:01:59 +08:00
--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)