diff options
author | Andreas Gohr <andi@splitbrain.org> | 2008-08-24 10:56:53 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2008-08-24 10:56:53 +0200 |
commit | fc80ed598f1db2b8b4de6aeb0917a3f7391ec215 (patch) | |
tree | c3dcead7b194b6bed3f6e9b17df7345e68a4198d /inc | |
parent | c63d16452935332d3389db45f1ec3f5ab940a0c5 (diff) | |
download | rpg-fc80ed598f1db2b8b4de6aeb0917a3f7391ec215.tar.gz rpg-fc80ed598f1db2b8b4de6aeb0917a3f7391ec215.tar.bz2 |
avoid deprected warnings in php5.3 FS#1464
darcs-hash:20080824085653-7ad00-44925f90b286493b9b55d1ace59136a676786faf.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/init.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/inc/init.php b/inc/init.php index aa0748207..58056083d 100644 --- a/inc/init.php +++ b/inc/init.php @@ -23,8 +23,15 @@ if (!defined('DOKU_E_LEVEL') && @file_exists(DOKU_CONF.'report_e_all')) { define('DOKU_E_LEVEL', E_ALL); } - if (!defined('DOKU_E_LEVEL')) { error_reporting(E_ALL ^ E_NOTICE); } - else { error_reporting(DOKU_E_LEVEL); } + if (!defined('DOKU_E_LEVEL')) { + if(defined('E_DEPRECATED')){ // since php 5.3 + error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); + }else{ + error_reporting(E_ALL ^ E_NOTICE); + } + } else { + error_reporting(DOKU_E_LEVEL); + } // init memory caches global $cache_revinfo; $cache_revinfo = array(); |