Remove redundant exception handler.
authorJan Schneider <jan@horde.org>
Thu, 8 Jan 2009 17:52:11 +0000 (18:52 +0100)
committerJan Schneider <jan@horde.org>
Thu, 8 Jan 2009 17:52:11 +0000 (18:52 +0100)
Don't die silently.

framework/Imap_Client/test/Horde/Imap/test_client.php

index e921af9..ce0f675 100644 (file)
@@ -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();
 }