From ef5480e64787e2dd7ef4404f43542bc3e280976c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Wed, 29 Mar 2017 17:14:02 +0200 Subject: [PATCH] Return FALSE in case of error_reporting of 0 to allow catching errors of fopen with error_get_last --- include/php_setup.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/php_setup.inc b/include/php_setup.inc index c7901d14e..f38ddf637 100644 --- a/include/php_setup.inc +++ b/include/php_setup.inc @@ -169,7 +169,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) /* Return if error reporting is set to zero */ if (error_reporting() == 0) { set_error_handler('gosaRaiseError', E_WARNING | E_NOTICE | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_STRICT); - return; + return FALSE; } /* Workaround for buggy imap_open error outputs */ -- GitLab