summaryrefslogtreecommitdiff
path: root/Zend/tests/list_002.phpt
blob: ac0d8974be4c9e5da606fe04007cca8a6ad57d84 (plain)
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)