xref: /PHP-7.2/Zend/tests/bug71539.phpt (revision fbca255c)
1--TEST--
2Bug #71539 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
3--FILE--
4<?php
5$array = [];
6$array[0] =& $array[''];
7$array[0] = 42;
8var_dump($array);
9?>
10--EXPECT--
11array(2) {
12  [""]=>
13  &int(42)
14  [0]=>
15  &int(42)
16}
17