diff --git a/dev/Debug.php b/dev/Debug.php index b7fde16aa..552a6a2db 100644 --- a/dev/Debug.php +++ b/dev/Debug.php @@ -148,17 +148,10 @@ class Debug { /** * Load an error handler - * - * @todo why does this delegate to loadFatalErrorHandler? */ static function loadErrorHandlers() { Debug::loadFatalErrorHandler(); - } - /** - * @todo can this be moved into loadErrorHandlers? - */ - static function loadFatalErrorHandler() { //set_error_handler('errorHandler', (E_ALL ^ E_NOTICE) ^ E_USER_NOTICE); set_error_handler('errorHandler', E_ALL); set_exception_handler('exceptionHandler'); @@ -457,4 +450,35 @@ function errorHandler($errno, $errstr, $errfile, $errline, $errcontext) { } } +/** + * Interface for rendering a debug info report. + * + */ +class DebugReporter { + + function writeHeader() { + echo '