Avoid lval notice in ExecutionContext::registerShutdownFunction
commitc342cb0c50303ab01a969f34129074cf533b4e6a
authorKevin Viratyosin <viratyosin@fb.com>
Wed, 26 Sep 2018 23:24:33 +0000 (26 16:24 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Wed, 26 Sep 2018 23:36:35 +0000 (26 16:36 -0700)
tree18454e8c09cb7786790e5704c36417015a81fa8a
parent047cb6ddc6050deb309b89e419634274ffe443a3
Avoid lval notice in ExecutionContext::registerShutdownFunction

Summary:
This diff avoids the `Lval on missing array element` notice that would result from `register_shutdown_function`.

for hhvm-cmake:

Reviewed By: billf

Differential Revision: D9815993

fbshipit-source-id: 7301f54668847f19e5b547c6fe101083e832ae3a
hphp/runtime/base/execution-context.cpp
hphp/test/slow/hack_arr_compat/register_shutdown_function_lval_on_missing_key.php [new file with mode: 0644]
hphp/test/slow/hack_arr_compat/register_shutdown_function_lval_on_missing_key.php.expect [new file with mode: 0644]
hphp/test/slow/hack_arr_compat/register_shutdown_function_lval_on_missing_key.php.hphp_opts [new file with mode: 0644]
hphp/test/slow/hack_arr_compat/register_shutdown_function_lval_on_missing_key.php.opts [new file with mode: 0644]
hphp/test/slow/hack_arr_compat/register_shutdown_function_lval_on_missing_key_dvarr.php [new file with mode: 0644]
hphp/test/slow/hack_arr_compat/register_shutdown_function_lval_on_missing_key_dvarr.php.expect [new file with mode: 0644]
hphp/test/slow/hack_arr_compat/register_shutdown_function_lval_on_missing_key_dvarr.php.hphp_opts [new file with mode: 0644]
hphp/test/slow/hack_arr_compat/register_shutdown_function_lval_on_missing_key_dvarr.php.opts [new file with mode: 0644]