Fix spew from hphp when it tries to constant-fold php-builtins

trigger_error bypasses the usual error handling, so
explicitly test for throwAllErrors.
Esse commit está contido em:
mwilliams
2013-06-03 17:29:37 -07:00
commit de Sara Golemon
commit 0007231452
+1
Ver Arquivo
@@ -164,6 +164,7 @@ void f_hphp_clear_unflushed() {
bool f_trigger_error(CStrRef error_msg,
int error_type /* = k_E_USER_NOTICE */) {
std::string msg = error_msg.data();
if (g_context->getThrowAllErrors()) throw error_type;
if (error_type == k_E_USER_ERROR) {
g_context->handleError(msg, error_type, true,
ExecutionContext::ThrowIfUnhandled,