Skip to content

Commit

Permalink
Only handle E_ERROR type in Kohana::shutdown_handler(), fixes #2768
Browse files Browse the repository at this point in the history
  • Loading branch information
Woody Gilk committed Apr 3, 2010
1 parent 8f29ae1 commit e5b7111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/kohana/core.php
Original file line number Diff line number Diff line change
Expand Up @@ -984,9 +984,9 @@ public static function shutdown_handler()
Kohana::exception_handler($e);
}

if (Kohana::$errors AND $error = error_get_last() AND (error_reporting() & $error['type']))
if (Kohana::$errors AND $error = error_get_last() AND $error['type'] === E_ERROR)
{
// If an output buffer exists, clear it
// Clean the output buffer
ob_get_level() and ob_clean();

// Fake an exception for nice debugging
Expand Down

0 comments on commit e5b7111

Please sign in to comment.