xref: /PHP-8.1/Zend/tests/bug63882_2.phpt (revision 14fddd17)
1--TEST--
2Bug #63882_2 (arsort crash on recursion)
3--FILE--
4<?php
5$token = array();
6$conditions = array();
7for ($i = 0; $i <= 2; $i++) {
8    $tokens = $conditions;
9    $a[0] =& $a;
10    $a = unserialize(serialize($GLOBALS));
11    $a[0] =& $a;
12    $a = unserialize(serialize($GLOBALS));
13    $a[0] =& $a;
14    foreach($a as $v) {
15        if ($v == 1) {
16            arsort($a);
17        }
18    }
19}
20?>
21DONE
22--EXPECT--
23DONE
24