xref: /PHP-5.3/Zend/tests/list_002.phpt (revision 5fa8f63a)
1--TEST--
2Testing full-reference on list()
3--FILE--
4<?php
5
6error_reporting(E_ALL);
7
8$a = new stdclass;
9$b =& $a;
10
11list($a, list($b)) = array($a, array($b));
12var_dump($a, $b, $a === $b);
13
14?>
15--EXPECT--
16object(stdClass)#1 (0) {
17}
18object(stdClass)#1 (0) {
19}
20bool(true)
21