mirror of
https://github.com/php/php-src.git
synced 2024-12-11 19:04:38 +08:00
21 lines
265 B
PHP
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)
|