/** * Registers this class as the PHP error and exception handler. This will * overwrite any previous handlers! * * @return void * @task config */ public static function initialize() { self::$initialized = true; set_error_handler(array('PhutilErrorHandler', 'handleError')); set_exception_handler(array('PhutilErrorHandler', 'handleException')); }
/** * Registers this class as the PHP error and exception handler. This will * overwrite any previous handlers! * * @return void * @task config */ public static function initialize() { self::$initialized = true; set_error_handler(array(__CLASS__, 'handleError')); set_exception_handler(array(__CLASS__, 'handleException')); }