mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
This restricts allowed usage of $GLOBALS, with the effect that plain PHP arrays can no longer contain INDIRECT elements. RFC: https://wiki.php.net/rfc/restrict_globals_usage Closes GH-6487.
17 lines
281 B
PHP
17 lines
281 B
PHP
--TEST--
|
|
Bug #65251: array_merge_recursive() recursion detection broken
|
|
--FILE--
|
|
<?php
|
|
|
|
/* This no longer involves any recursion. */
|
|
try {
|
|
array_merge_recursive($GLOBALS, $GLOBALS);
|
|
} catch (\Error $e) {
|
|
echo $e->getMessage() . "\n";
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|