diff --git a/kiri-engine/Error/ErrorHandler.php b/kiri-engine/Error/ErrorHandler.php index 6a4d7537..c019d227 100644 --- a/kiri-engine/Error/ErrorHandler.php +++ b/kiri-engine/Error/ErrorHandler.php @@ -36,13 +36,8 @@ class ErrorHandler extends Component implements ErrorInterface */ public function register() { -// ini_set('display_errors', '1'); set_exception_handler([$this, 'exceptionHandler']); - if (defined('HHVM_VERSION')) { - set_error_handler([$this, 'errorHandler']); - } else { - set_error_handler([$this, 'errorHandler']); - } + set_error_handler([$this, 'errorHandler']); register_shutdown_function([$this, 'shutdown']); } @@ -118,8 +113,6 @@ class ErrorHandler extends Component implements ErrorInterface { $path = ['file' => $file, 'line' => $line]; - var_dump(func_get_args()); - $data = Json::to($code, $this->category . ': ' . $message, $path); write($data, $this->category);