summaryrefslogtreecommitdiff
path: root/Zend/tests/bug71539_5.phpt
blob: 14559bf65e641f02044ad6b316c7d4d59daab8b9 (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['']->prop =& $array[0];
$array[0] = 42;
var_dump($array);
?>
--EXPECT--
array(2) {
  [0]=>
  &int(42)
  [""]=>
  object(stdClass)#1 (1) {
    ["prop"]=>
    &int(42)
  }
}