| @@ -51,8 +51,9 @@ | ||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | public static function exceptionHandler(Throwable $exception) |
| 54 | 54 | { |
| 55 | + | |
| 55 | 56 | self::errorHandler(-1, $exception->getMessage(), $exception->getFile(), $exception->getLine()); |
| 56 | 57 | } |
| 57 | 58 | |
| 58 | 59 | public static function errorHandler($error_type, $error_message, $error_file, $error_line) |
| @@ -61,14 +62,8 @@ | ||
| 61 | 62 | if (!$error_type) { |
| 62 | 63 | return; |
| 63 | 64 | } |
| 64 | 65 | |
| 65 | - // Respect the active error_reporting mask so @-suppressed warnings | |
| 66 | - // and globally filtered notices do not get re-logged by this handler. | |
| 67 | - if (-1 !== $error_type && 0 === (error_reporting() & $error_type)) { | |
| 68 | - return false; | |
| 69 | - } | |
| 70 | - | |
| 71 | 66 | $fatal = false; |
| 72 | 67 | |
| 73 | 68 | switch ($error_type) { |
| 74 | 69 | |
| @@ -883,5 +878,5 @@ | ||
| 883 | 878 | } |
| 884 | 879 | } |
| 885 | 880 | |
| 886 | 881 | WPIDE_Error_Handler::boot(); |
| 887 | -} | |
| 882 | +} | |