1
0
mirror of https://github.com/php/php-src.git synced 2026-04-09 00:53:30 +02:00
Files
archived-php-src/Zend/tests/list_002.phpt
Felipe Pena 5fa8f63a01 New tests
2008-03-12 12:58:12 +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)