disabling E_DEPRECATED, as contrib apps wont work under PHP 7.1 with having eg. contructors with same name as the class

This commit is contained in:
Ralf Becker 2017-10-21 12:02:04 +02:00
parent 0f85fc26ff
commit c88e6e0237
2 changed files with 8 additions and 2 deletions

View File

@ -20,7 +20,7 @@ if (!defined('EGW_SERVER_ROOT'))
define('EGW_SERVER_ROOT', dirname(dirname(__DIR__))); define('EGW_SERVER_ROOT', dirname(dirname(__DIR__)));
define('EGW_INCLUDE_ROOT', EGW_SERVER_ROOT); define('EGW_INCLUDE_ROOT', EGW_SERVER_ROOT);
define('EGW_API_INC', EGW_SERVER_ROOT.'/phpgwapi/inc'); define('EGW_API_INC', EGW_SERVER_ROOT.'/phpgwapi/inc');
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
} }
/** /**
@ -115,3 +115,9 @@ if (file_exists(EGW_SERVER_ROOT.'/vendor'))
{ {
require_once EGW_SERVER_ROOT.'/vendor/autoload.php'; require_once EGW_SERVER_ROOT.'/vendor/autoload.php';
} }
if (!empty($GLOBALS['egw_info']['currentapp']) && isset($GLOBALS['egw_info']['apps'][$GLOBALS['egw_info']['currentapp']]) &&
file_exists(EGW_SERVER_ROOT.'/'.$GLOBALS['egw_info']['currentapp'].'/vendor/autoload.php'))
{
require_once EGW_SERVER_ROOT.'/'.$GLOBALS['egw_info']['currentapp'].'/vendor/autoload.php';
}

View File

@ -24,7 +24,7 @@ use EGroupware\Api\Egw;
// Only variables should be assigned by reference, eg. soetemplate::tree_walk() // Only variables should be assigned by reference, eg. soetemplate::tree_walk()
// Declaration of <extended method> should be compatible with <parent method>, varios places where method parameters change // Declaration of <extended method> should be compatible with <parent method>, varios places where method parameters change
// --> switching it off for now, as it makes error-log unusable // --> switching it off for now, as it makes error-log unusable
error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);
if (function_exists('get_magic_quotes_runtime') && get_magic_quotes_runtime()) if (function_exists('get_magic_quotes_runtime') && get_magic_quotes_runtime())
{ {
set_magic_quotes_runtime(false); set_magic_quotes_runtime(false);