From: Roland Häder Date: Tue, 28 Nov 2017 21:58:21 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3d5cebdcefb15a44ae7f372ecda1e00dca0f1818;p=quix0rs-gnu-social.git 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 Signed-off-by: Roland Häder --- 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';