1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
--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)