globals helper functionsnightly-2019.04.17
commitecf1596f641a2fe2c635b09d04d5943d5bb7bc46
authorBill Fumerola <bill@fb.com>
Wed, 17 Apr 2019 02:05:59 +0000 (16 19:05 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 17 Apr 2019 02:09:51 +0000 (16 19:09 -0700)
tree413034a710f12460322dd615f2e119fb8e4896c1
parent76e9041da27954f9824ef2e0b94ef874a32c1df3
globals helper functions

Summary: rather than reading/writing directly to `$GLOBALS` introduce a suite of functions to manipulate keys inside the global namespace (currently, `$GLOBALS`)

Reviewed By: jano

Differential Revision: D14923490

fbshipit-source-id: 8fcd0a7743a686b9d4016c264a8cbd12e5400c12
hphp/hack/hhi/stdlib/builtins_globals.hhi [new file with mode: 0644]
hphp/hack/src/hhbc/emit_expression.ml
hphp/test/slow/global_vars/functions.php [new file with mode: 0644]
hphp/test/slow/global_vars/functions.php.expect [new file with mode: 0644]