/hphp/test/slow/array_functions/self_recursive.php
PHP | 18 lines | 13 code | 5 blank | 0 comment | 0 complexity | 03002be32e4fe9f4ecb6570e9aece0c1 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
- <?hh
- function test($g) {
- $GLOBALS['g'] = $GLOBALS['GLOBALS'];
- array_replace_recursive($GLOBALS['GLOBALS'], $g);
- $GLOBALS['g'] = $GLOBALS['GLOBALS'];
- array_merge_recursive($GLOBALS['GLOBALS'], $g);
- }
- <<__EntryPoint>>
- function main_self_recursive() {
- $a = darray['g' => $GLOBALS['GLOBALS']];
- test($a);
- test($GLOBALS['GLOBALS']);
- }