From: Jan Schneider Date: Thu, 8 Jan 2009 17:52:11 +0000 (+0100) Subject: Remove redundant exception handler. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=3e196f802807c66b6cedaa5e96554f49cb4ecbb1;p=horde.git Remove redundant exception handler. Don't die silently. --- diff --git a/framework/Imap_Client/test/Horde/Imap/test_client.php b/framework/Imap_Client/test/Horde/Imap/test_client.php index e921af91b..ce0f675d6 100644 --- a/framework/Imap_Client/test/Horde/Imap/test_client.php +++ b/framework/Imap_Client/test/Horde/Imap/test_client.php @@ -81,13 +81,6 @@ if (!empty($argv[3])) { $params = array_merge($params, Horde_Imap_Client::parseImapURL($argv[3])); } -function error_handler($exception) { - print "\n=====================================\n" . - 'ERROR EXCEPTION: ' . $exception->getMessage() . - "\n=====================================\n"; -} -set_exception_handler('error_handler'); - function exception_handler($exception) { print "\n=====================================\n" . 'UNCAUGHT EXCEPTION: ' . $exception->getMessage() . @@ -95,7 +88,7 @@ function exception_handler($exception) { } set_exception_handler('exception_handler'); -if (@require_once 'Benchmark/Timer.php') { +if (@include_once 'Benchmark/Timer.php') { $timer = new Benchmark_Timer(); $timer->start(); }