From 3d5cebdcefb15a44ae7f372ecda1e00dca0f1818 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 28 Nov 2017 22:58:21 +0100 Subject: [PATCH] Continued: - disable all warnings and errors, generally bad, but here neccessarry until this whole thing has been rewritten to something better - also disable some interfering settings from Xdebug MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- scripts/getvaliddaemons.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/getvaliddaemons.php b/scripts/getvaliddaemons.php index 61fe9b638a..adcae612a8 100755 --- a/scripts/getvaliddaemons.php +++ b/scripts/getvaliddaemons.php @@ -35,7 +35,18 @@ by the startdaemons script ENDOFHELP; // No unnecessary error reporting to avoid invalid daemon names -error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE); +error_reporting(0); +ini_set('error_reporting', 0); + +// Is xdebug loaded? +if (extension_loaded('xdebug')) { + // Disable even more errors as they may cause unwanted content here + ini_set('xdebug.show_error_trace', FALSE); + ini_set('xdebug.show_exception_trace', FALSE); + ini_set('xdebug.force_display_errors', FALSE); + ini_set('xdebug.force_error_reporting', FALSE); + ini_set('xdebug.scream', FALSE); +} require_once INSTALLDIR.'/scripts/commandline.inc'; -- 2.39.5