From be1660ef7a264a5afea5b9d5e0250dbe6907bac4 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 14 Mar 2005 00:13:23 +0000 Subject: [PATCH] Cleaned up error reporting stuff so it works better under PHP5... this seems to be the only thing we ever do now :p --- kernel.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kernel.php b/kernel.php index 8f08b20..96dfb33 100644 --- a/kernel.php +++ b/kernel.php @@ -26,19 +26,23 @@ if (version_compare(PHP_VERSION, '5.0.0', '>=')) { error_reporting(ini_get('error_reporting') - E_NOTICE); } + if (ini_get('error_reporting') & E_USER_NOTICE) + { + error_reporting(ini_get('error_reporting') - E_USER_NOTICE); + } } -if (!(ini_get('error_reporting') & E_NOTICE)) +if (!(ini_get('error_reporting') & E_NOTICE) AND ini_get('error_reporting') & E_USER_NOTICE) { error_reporting(ini_get('error_reporting') - E_USER_NOTICE); } -if (!(ini_get('error_reporting') & E_WARNING)) +if (!(ini_get('error_reporting') & E_WARNING) AND ini_get('error_reporting') & E_USER_WARNING) { error_reporting(ini_get('error_reporting') - E_USER_WARNING); } -if (!(ini_get('error_reporting') & E_ERROR)) +if (!(ini_get('error_reporting') & E_ERROR) AND ini_get('error_reporting') & E_USER_ERROR) { error_reporting(ini_get('error_reporting') - E_USER_ERROR); } -- 2.43.5