/** * Register FirePHP as your error handler * * Will throw exceptions for each php error. * * @return mixed Returns a string containing the previously defined error handler (if any) */ public function registerErrorHandler($throwErrorExceptions = false) { //NOTE: The following errors will not be caught by this error handler: // E_ERROR, E_PARSE, E_CORE_ERROR, // E_CORE_WARNING, E_COMPILE_ERROR, // E_COMPILE_WARNING, E_STRICT self::$throwErrorExceptions = $throwErrorExceptions; return set_error_handler(array($this, 'errorHandler')); }