Skip to content
Snippets Groups Projects
Commit fc80ed59 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

avoid deprected warnings in php5.3 FS#1464

darcs-hash:20080824085653-7ad00-44925f90b286493b9b55d1ace59136a676786faf.gz
parent c63d1645
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment