code syntax; hint: use local config file to change values in config files for testing purpose

Dieser Commit ist enthalten in:
Oldperl 2019-10-07 13:15:41 +00:00
Ursprung d4a20eb735
Commit 710dcc8d18
1 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -139,7 +139,7 @@ $cfg['native_i18n'] = false;
*/
/* Don't display errors */
@ini_set("display_errors", true);
@ini_set("display_errors", false);
/* Log errors to a file */
@ini_set("log_errors", true);
@ -156,8 +156,7 @@ if ($cfg["develop"]["show_errors"] && $_SERVER['SERVER_NAME'] == "local.dceserve
} else {
if (version_compare(PHP_VERSION, '5.3.0', '<')) { // remove unknown deprecated for PHP < 5.3
error_reporting(E_ALL ^ E_NOTICE);
} else
if (version_compare(PHP_VERSION, '7.0.0', '>=')) {
} else if (version_compare(PHP_VERSION, '7.0.0', '>=')) {
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED ^ E_WARNING);
} else if (version_compare(PHP_VERSION, '5.4.0', '>=')) {
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED ^ E_STRICT);