summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71539_5.phpt
blob: bd08de5eb66f7c401755e9fb293902bd97b26f62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--TEST--
Bug #71539.5 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
--FILE--
<?php
$array = [];
$array[''][0] =& $array[0];
$array[0] = 42;
var_dump($array);
?>
--EXPECT--
array(2) {
  [0]=>
  &int(42)
  [""]=>
  array(1) {
    [0]=>
    &int(42)
  }
}