add error_handling conf for php 7
Dieser Commit ist enthalten in:
Ursprung
8da8f2a18d
Commit
b1ca1bad4d
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Project:
|
||||
* Contenido Content Management System
|
||||
|
@ -17,7 +18,6 @@
|
|||
*
|
||||
* $Id: config.misc.php 390 2015-11-09 21:02:55Z oldperl $:
|
||||
*/
|
||||
|
||||
if (!defined('CON_FRAMEWORK')) {
|
||||
die('Illegal call');
|
||||
}
|
||||
|
@ -151,6 +151,9 @@ if($cfg["develop"]["show_errors"] && $_SERVER['SERVER_NAME'] == "localhost") {
|
|||
} 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', '>=')) {
|
||||
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 {
|
||||
|
|
Laden…
In neuem Issue referenzieren