mirror of
https://github.com/filp/whoops.git
synced 2026-09-14 19:56:23 +00:00
Merge pull request #231 from adrian-budau/hhvm3.3fix
Not catching fatal erros on hhvm 3.3
This commit is contained in:
+7
-11
@@ -377,16 +377,12 @@ class Run
|
||||
|
||||
private static function isLevelFatal($level)
|
||||
{
|
||||
return in_array(
|
||||
$level,
|
||||
array(
|
||||
E_ERROR,
|
||||
E_PARSE,
|
||||
E_CORE_ERROR,
|
||||
E_CORE_WARNING,
|
||||
E_COMPILE_ERROR,
|
||||
E_COMPILE_WARNING
|
||||
)
|
||||
);
|
||||
$errors = E_ERROR
|
||||
| E_PARSE
|
||||
| E_CORE_ERROR
|
||||
| E_CORE_WARNING
|
||||
| E_COMPILE_ERROR
|
||||
| E_COMPILE_WARNING;
|
||||
return $level & $errors;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user