summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71539.phpt
blob: 16b5ed8358138ebbc01a2ccb355946153a3bc32f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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)
}