mirror of
https://github.com/php/php-src.git
synced 2024-12-19 15:00:15 +08:00
17 lines
228 B
PHP
17 lines
228 B
PHP
--TEST--
|
|
Bug #71539 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
|
|
--FILE--
|
|
<?php
|
|
$array = [];
|
|
$array[0] =& $array[''];
|
|
$array[0] = 42;
|
|
var_dump($array);
|
|
?>
|
|
--EXPECT--
|
|
array(2) {
|
|
[""]=>
|
|
&int(42)
|
|
[0]=>
|
|
&int(42)
|
|
}
|