Exception should be thrown and not handled.

pull/57/head
Mike Cao 12 years ago
parent 8ca9b2d76d
commit 988d4f5631

@ -133,10 +133,11 @@ class Engine {
* @param int $errstr Error string * @param int $errstr Error string
* @param int $errfile Error file name * @param int $errfile Error file name
* @param int $errline Error file line number * @param int $errline Error file line number
* @throws \ErrorException
*/ */
public function handleError($errno, $errstr, $errfile, $errline) { public function handleError($errno, $errstr, $errfile, $errline) {
if ($errno & error_reporting()) { if ($errno & error_reporting()) {
$this->handleException(new \ErrorException($errstr, $errno, 0, $errfile, $errline)); throw new \ErrorException($errstr, $errno, 0, $errfile, $errline);
} }
} }

Loading…
Cancel
Save