Use Horde_Cli::fatal as default exception handler.
authorJan Schneider <jan@horde.org>
Wed, 11 Aug 2010 21:22:57 +0000 (23:22 +0200)
committerJan Schneider <jan@horde.org>
Thu, 12 Aug 2010 15:34:49 +0000 (17:34 +0200)
framework/Cli/lib/Horde/Cli.php

index f37d7ce..bdf203f 100644 (file)
@@ -439,6 +439,7 @@ class Horde_Cli
         @set_time_limit(0);
         ob_implicit_flush(true);
         ini_set('html_errors', false);
+        set_exception_handler(array($cli, 'fatal'));
         $_SERVER['HTTP_HOST'] = '127.0.0.1';
         $_SERVER['SERVER_NAME'] = '127.0.0.1';
         $_SERVER['SERVER_PORT'] = '';