From be1fbc92f3ed5563ca96f731366e2b80d34d304b Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 4 Jan 2007 10:27:52 +0000 Subject: [PATCH] Suppression de la fonction compatibilityErrorHandler commentee --- htdocs/main.inc.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 68d94155f93..22476673e0a 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -737,26 +737,4 @@ function llxFooter($foot='',$limitIEbug=1) print "\n"; } - -/**************************************************************** -* Error handler for PHP 5.2 -* This make Dolibarr working in PHP 5.2+ when some code do print "$object" and $object is an object. -*/ -/**************************************************************** -function compatibilityErrorHandler($errno, $errstr, $errfile, $errline) -{ - switch ($errno) { - case E_RECOVERABLE_ERROR: - break; - default: - echo "Unknown error type: [$errno] $errstr
\n"; - break; - } -} -if (defined("E_RECOVERABLE_ERROR")) // set to the user defined error handler -{ - $old_error_handler = set_error_handler("compatibilityErrorHandler",E_RECOVERABLE_ERROR); -} -****************************************************************/ - ?>