summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/bug65251.phpt
blob: 3e0f3a1e27c86121615c9a9a59e73c3153f1a7b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #65251: array_merge_recursive() recursion detection broken
--FILE--
<?php

try {
    array_merge_recursive($GLOBALS, $GLOBALS);
} catch (\Error $e) {
    echo $e->getMessage() . "\n";
}

?>
--EXPECT--
Recursion detected