From 45d3005f3c835923493b0016a8801eb82447cec5 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 4 Nov 2014 13:20:41 +0100 Subject: [PATCH] Throw exceptions on PHP warnings Sometimes we miss PHP warnings because our layout overlays them. --- library/Icinga/Application/ApplicationBootstrap.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Icinga/Application/ApplicationBootstrap.php b/library/Icinga/Application/ApplicationBootstrap.php index 368c93a8f7..7d22eaafa9 100644 --- a/library/Icinga/Application/ApplicationBootstrap.php +++ b/library/Icinga/Application/ApplicationBootstrap.php @@ -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); }