Browse Source

error handler now works properly with @

tags/2.0.0-beta
Alexander Makarov 12 years ago
parent
commit
32f34b60b8
  1. 4
      framework/base/ErrorHandler.php

4
framework/base/ErrorHandler.php

@ -77,7 +77,9 @@ class ErrorHandler extends ApplicationComponent
*/ */
public function handleError($code, $message, $file, $line) 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);
}
} }
/** /**

Loading…
Cancel
Save