mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +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)
|