change settings for error_reporting
Dieser Commit ist enthalten in:
Ursprung
9aaecb27cd
Commit
f0aaecbded
|
@ -159,12 +159,8 @@ if ($cfg["develop"]["show_errors"]
|
||||||
if ($cfg["develop"]["show_deprecated"]) {
|
if ($cfg["develop"]["show_deprecated"]) {
|
||||||
error_reporting(E_ALL ^ E_NOTICE);
|
error_reporting(E_ALL ^ E_NOTICE);
|
||||||
} else {
|
} else {
|
||||||
if (version_compare(PHP_VERSION, '5.3.0', '<')) { // remove unknown deprecated for PHP < 5.3
|
if (version_compare(PHP_VERSION, '7.4.0', '>=')) {
|
||||||
error_reporting(E_ALL ^ E_NOTICE);
|
|
||||||
} else if (version_compare(PHP_VERSION, '7.0.0', '>=')) {
|
|
||||||
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED ^ E_WARNING);
|
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);
|
|
||||||
} else {
|
} else {
|
||||||
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED);
|
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED ^ E_USER_DEPRECATED);
|
||||||
}
|
}
|
||||||
|
|
Laden…
In neuem Issue referenzieren