Skip to content

Commit

Permalink
Throw exceptions on PHP warnings
Browse files Browse the repository at this point in the history
Sometimes we miss PHP warnings because our layout overlays them.
  • Loading branch information
lippserd committed Nov 4, 2014
1 parent f9fee2d commit 45d3005
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/Icinga/Application/ApplicationBootstrap.php
Expand Up @@ -388,6 +388,7 @@ protected function setupErrorHandling()
return false; // Continue with the normal error handler
}
switch($errno) {
case E_WARNING:
case E_STRICT:
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
}
Expand Down

0 comments on commit 45d3005

Please sign in to comment.