Add option to turn off display_errors

This commit is contained in:
balki
2021-12-20 16:21:38 -05:00
committed by Pierrick Le Gall
parent 4b8c033247
commit f5fa2526be
2 changed files with 11 additions and 1 deletions
+4 -1
View File
@@ -87,7 +87,10 @@ include(PHPWG_ROOT_PATH .'include/dblayer/functions_'.$conf['dblayer'].'.inc.php
if(isset($conf['show_php_errors']) && !empty($conf['show_php_errors']))
{
@ini_set('error_reporting', $conf['show_php_errors']);
@ini_set('display_errors', true);
if($conf['show_php_errors_on_frontend'])
{
@ini_set('display_errors', true);
}
}
if ($conf['session_gc_probability'] > 0)
+7
View File
@@ -490,6 +490,13 @@ $conf['template_combine_files'] = true;
// gives an empty value '' to deactivate
$conf['show_php_errors'] = E_ALL;
// This sets the display_errors php option to true, so php errors and warning
// messages are shown in the browser. If this is false, the error messages are
// available in the php log of the server if show_php_errors has any set.
// If the below is turned off in local config and errors are still shown on
// frontend, check for display_errors setting server's php config
$conf['show_php_errors_on_frontend'] = true;
// +-----------------------------------------------------------------------+
// | authentication |