xref: /PHP-7.4/Zend/tests/bug71539_6.phpt (revision d679f022)
1--TEST--
2Bug #71539.5 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
3--FILE--
4<?php
5$name = 'a';
6for ($i = 0; $i < 100000; $i++) {
7    if ($name != 'i') {
8        $$name =& $GLOBALS;
9    }
10    $name++;
11}
12?>
13OK
14--EXPECT--
15OK
16