* PHP 5.5: disabling deprecated warnings of 5.5 eg. preg_replace with /e

This commit is contained in:
Ralf Becker 2014-05-27 15:04:32 +00:00
parent 1e87abcb6e
commit b18e3f4e55
2 changed files with 4 additions and 2 deletions

View File

@ -21,7 +21,8 @@
// 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
// --> 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);

View File

@ -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'];