Remove Reserved Variables (php_errormsg)
commit1b520b8b61b24f4490ee7e897f48651e0084e692
authorMaggie Moss <maggiemoss@fb.com>
Thu, 18 Oct 2018 18:44:02 +0000 (18 11:44 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Thu, 18 Oct 2018 18:49:35 +0000 (18 11:49 -0700)
tree9887ae97a1a65cbda906fd1f5c790b0cbeec3643
parent3e3cbc31d47ed29c31943f7f8c8f86a0af5de73d
Remove Reserved Variables (php_errormsg)

Summary:
This adds a flag that stops `php_errormsg` from being set when an error is encountered.

I'm not sure if this is the best approach, but from reading the code, it seems like this would be the logical way to disable this behaviour with a flag.

Reviewed By: ricklavoie

Differential Revision: D10305402

fbshipit-source-id: 31316ff9d7440bf85f49d54366fb36b5de6ec70f
hphp/runtime/base/execution-context.cpp
hphp/runtime/base/runtime-option.cpp
hphp/runtime/base/runtime-option.h
hphp/test/slow/phpism/reserved_variables.php [new file with mode: 0644]
hphp/test/slow/phpism/reserved_variables.php.expectf [new file with mode: 0644]
hphp/test/slow/phpism/reserved_variables.php.hphp_opts [new file with mode: 0644]
hphp/test/slow/phpism/reserved_variables.php.opts [new file with mode: 0644]
hphp/test/slow/phpism/reserved_variables2.php [new file with mode: 0644]
hphp/test/slow/phpism/reserved_variables2.php.expectf [new file with mode: 0644]
hphp/test/slow/phpism/reserved_variables2.php.hphp_opts [new file with mode: 0644]
hphp/test/slow/phpism/reserved_variables2.php.opts [new file with mode: 0644]