source: src/router/php7/Zend/tests/bug71539_2.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 349 bytes
Line 
1--TEST--
2Bug #71539.2 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
3--FILE--
4<?php
5$a = [0,1,2,3,4,5,6];
6$a[200] =& $a[100];
7$a[100] =42;
8var_dump($a);
9?>
10--EXPECT--
11array(9) {
12  [0]=>
13  int(0)
14  [1]=>
15  int(1)
16  [2]=>
17  int(2)
18  [3]=>
19  int(3)
20  [4]=>
21  int(4)
22  [5]=>
23  int(5)
24  [6]=>
25  int(6)
26  [100]=>
27  &int(42)
28  [200]=>
29  &int(42)
30}
Note: See TracBrowser for help on using the repository browser.