xref: /PHP-8.2/ext/standard/tests/array/bug65251.phpt (revision 3c68f38f)
1--TEST--
2Bug #65251: array_merge_recursive() recursion detection broken
3--FILE--
4<?php
5
6/* This no longer involves any recursion. */
7try {
8    array_merge_recursive($GLOBALS, $GLOBALS);
9} catch (\Error $e) {
10    echo $e->getMessage() . "\n";
11}
12
13?>
14===DONE===
15--EXPECT--
16===DONE===
17