mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
9343f874cd
Also commit a test I forgot.
14 lines
176 B
PHP
14 lines
176 B
PHP
--TEST--
|
|
Identical comparison of array with references
|
|
--FILE--
|
|
<?php
|
|
|
|
$foo = 42;
|
|
$array1 = [&$foo];
|
|
$array2 = [$foo];
|
|
var_dump($array1 === $array2);
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|