/hphp/test/slow/array_functions/self_recursive.php
http://github.com/facebook/hiphop-php · PHP · 18 lines · 13 code · 5 blank · 0 comment · 0 complexity · 03002be32e4fe9f4ecb6570e9aece0c1 MD5 · raw file
- <?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']);
- }