Skip to content
Snippets Groups Projects
Commit 5de869f9 authored by Peter Rotich's avatar Peter Rotich
Browse files

Add error reporting setting to hide warnings

parent afe7853a
Branches
Tags
No related merge requests found
......@@ -17,8 +17,14 @@
#This version - changed on every release
define('THIS_VERSION', '1.7-RC2');
#inits
error_reporting(E_ALL ^ E_NOTICE); //turn on errors??
#inits - error reporting.
$error_reporting = E_ALL & ~E_NOTICE;
if (defined('E_STRICT')) # 5.4.0
$error_reporting &= ~E_STRICT;
if (defined('E_DEPRECATED')) # 5.3.0
$error_reporting &= ~(E_DEPRECATED | E_USER_DEPRECATED);
error_reporting($error_reporting);
ini_set('magic_quotes_gpc', 0);
ini_set('session.use_trans_sid', 0);
ini_set('session.cache_limiter', 'nocache');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment