From b18e3f4e5508348f24179fb7f3dbfca7aca901c9 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 27 May 2014 15:04:32 +0000 Subject: [PATCH] * PHP 5.5: disabling deprecated warnings of 5.5 eg. preg_replace with /e --- phpgwapi/inc/functions.inc.php | 3 ++- setup/inc/functions.inc.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/functions.inc.php b/phpgwapi/inc/functions.inc.php index d0b2a16623..7ae4f19f44 100644 --- a/phpgwapi/inc/functions.inc.php +++ b/phpgwapi/inc/functions.inc.php @@ -21,7 +21,8 @@ // Only variables should be assigned by reference, eg. soetemplate::tree_walk() // Declaration of should be compatible with , varios places where method parameters change // --> switching it off for now, as it makes error-log unusable -error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT); +// disabling PHP 5.5 E_DEPRECATED messages eg. preg_replace with /e +error_reporting(error_reporting() & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); if (function_exists('get_magic_quotes_runtime') && get_magic_quotes_runtime()) { set_magic_quotes_runtime(false); diff --git a/setup/inc/functions.inc.php b/setup/inc/functions.inc.php index fb584a4499..56606cc51d 100644 --- a/setup/inc/functions.inc.php +++ b/setup/inc/functions.inc.php @@ -13,7 +13,8 @@ * @version $Id$ */ -error_reporting(error_reporting() & ~E_NOTICE & ~E_STRICT); +// disabling PHP 5.5 E_DEPRECATED messages eg. preg_replace with /e +error_reporting(error_reporting() & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); // for an old header, we need to setup the reference before including it $GLOBALS['phpgw_info'] =& $GLOBALS['egw_info'];