xref: /PHP-8.0/ext/standard/tests/array/bug65251.phpt (revision 20edea5a)
1--TEST--
2Bug #65251: array_merge_recursive() recursion detection broken
3--FILE--
4<?php
5
6try {
7    array_merge_recursive($GLOBALS, $GLOBALS);
8} catch (\Error $e) {
9    echo $e->getMessage() . "\n";
10}
11
12?>
13--EXPECT--
14Recursion detected
15