diff --git a/framework/base/ErrorHandler.php b/framework/base/ErrorHandler.php index 250c403..fbb50d4 100644 --- a/framework/base/ErrorHandler.php +++ b/framework/base/ErrorHandler.php @@ -77,7 +77,9 @@ class ErrorHandler extends ApplicationComponent */ public function handleError($code, $message, $file, $line) { - throw new \ErrorException($message, 0, $code, $file, $line); + if(error_reporting()!==0) { + throw new \ErrorException($message, 0, $code, $file, $line); + } } /**