mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-23 06:19:09 +01:00
* PHP 5.5: disabling deprecated warnings of 5.5 eg. preg_replace with /e
This commit is contained in:
parent
1e87abcb6e
commit
b18e3f4e55
@ -21,7 +21,8 @@
|
|||||||
// 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);
|
// 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())
|
if (function_exists('get_magic_quotes_runtime') && get_magic_quotes_runtime())
|
||||||
{
|
{
|
||||||
set_magic_quotes_runtime(false);
|
set_magic_quotes_runtime(false);
|
||||||
|
@ -13,7 +13,8 @@
|
|||||||
* @version $Id$
|
* @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
|
// for an old header, we need to setup the reference before including it
|
||||||
$GLOBALS['phpgw_info'] =& $GLOBALS['egw_info'];
|
$GLOBALS['phpgw_info'] =& $GLOBALS['egw_info'];
|
||||||
|
Loading…
Reference in New Issue
Block a user