mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
20 lines
284 B
PHP
20 lines
284 B
PHP
--TEST--
|
|
Bug #71539.5 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
|
|
--FILE--
|
|
<?php
|
|
$array = [];
|
|
$array['']->prop =& $array[0];
|
|
$array[0] = 42;
|
|
var_dump($array);
|
|
?>
|
|
--EXPECT--
|
|
array(2) {
|
|
[0]=>
|
|
&int(42)
|
|
[""]=>
|
|
object(stdClass)#1 (1) {
|
|
["prop"]=>
|
|
&int(42)
|
|
}
|
|
}
|