From 888a72d46364ed7eb20fca7b095bb2cb92fe19e0 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 17 Aug 2006 01:24:50 +0000 Subject: [PATCH] Removing the error_reporting shuffling that we did previously --- kernel.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/kernel.php b/kernel.php index 4ef5497..181c195 100644 --- a/kernel.php +++ b/kernel.php @@ -50,28 +50,6 @@ if ((bool)ini_get('register_globals') === true) } } -$oldlevel = ini_get('error_reporting'); -$newlevel = $oldlevel; -$levels = array(E_ERROR => E_USER_ERROR, E_WARNING => E_USER_WARNING, E_NOTICE => E_USER_NOTICE); -foreach ($levels AS $php => $isso) -{ - if ($oldlevel & $php) - { - if (!($oldlevel & $isso)) - { - $newlevel += $isso; - } - } - else - { - if ($oldlevel & $isso) - { - $newlevel -= $isso; - } - } -} -error_reporting($newlevel); - /** * Yes, required */ -- 2.43.5