From c6beb7a4fbd0118ee766d8c8612eae1ddfc745c3 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 11 May 2011 07:20:04 -0700 Subject: [PATCH] Move to explicit initialization of PhutilErrorHandler. --- webroot/index.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webroot/index.php b/webroot/index.php index a30dcf4b67..4223c289f8 100644 --- a/webroot/index.php +++ b/webroot/index.php @@ -66,10 +66,9 @@ try { DarkConsoleXHProfPluginAPI::hookProfiler(); phutil_require_module('phabricator', 'aphront/console/plugin/errorlog/api'); - set_error_handler( - array('PhutilErrorHandler', 'handleError')); - set_exception_handler( - array('PhutilErrorHandler', 'handleException')); + + PhutilErrorHandler::initialize(); + } catch (Exception $ex) { phabricator_fatal_config_error( "[Exception] ".$ex->getMessage());