From bc6e81320e92bb41c1a9ad984edc2b8eec0a65f8 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 5 Mar 2006 20:14:06 +0000 Subject: [PATCH] Geeze... that stupid _error_handler() bug has been there FOREVER --- kernel.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/kernel.php b/kernel.php index 813a109..3cbb34a 100644 --- a/kernel.php +++ b/kernel.php @@ -747,7 +747,7 @@ class ISSO * @param string The line number of the error * @param string The active symbol table at which point the error occurred */ - function _error_handler($errno, $errstr, $errfile, $errline) + function _error_handler($errno, $errstr, $errfile, $errline, $errcontext) { $level = ini_get('error_reporting'); @@ -756,7 +756,7 @@ class ISSO // Fatal case E_USER_ERROR: $title = 'Fatal'; - $level = 3; + $mode = 3; if (!($level & E_USER_ERROR)) { return; @@ -766,7 +766,7 @@ class ISSO // Error case E_USER_WARNING: $title = 'Warning'; - $level = 2; + $mode = 2; if (! (($level & E_USER_WARNING) AND ($level & E_WARNING)) ) { return; @@ -777,7 +777,7 @@ class ISSO case E_USER_NOTICE: default: $title = 'Notice'; - $level = 1; + $mode = 1; if (! (($level & E_USER_NOTICE) AND ($level & E_NOTICE)) ) { return; @@ -789,7 +789,7 @@ class ISSO $errstr = str_replace(array(getcwd(), dirname(getcwd())), '', $errstr); - $this->message($title, $errstr, $level); + $this->message($title, $errstr, $mode); if ($errno == E_USER_ERROR) { -- 2.43.5