Merge branch 'feature/error-control-operator-support'

This commit is contained in:
Denis Sokolov
2013-11-06 17:07:26 +01:00
+22 -7
View File
@@ -335,13 +335,28 @@ class Run
*/
public function handleShutdown()
{
if($error = error_get_last()) {
$this->handleError(
$error["type"],
$error["message"],
$error["file"],
$error["line"]
);
if ($error = error_get_last()) {
if (
in_array(
$error['type'],
array(
E_ERROR,
E_PARSE,
E_CORE_ERROR,
E_CORE_WARNING,
E_COMPILE_ERROR,
E_COMPILE_WARNING
)
)
) {
$this->handleError(
$error['type'],
$error['message'],
$error['file'],
$error['line']
);
}
}
}
}