/** * Restores the temporarily overridden default error handling mechanism back to the default. */ public static function RestoreErrorHandler() { if (is_null(QApplicationBase::$intStoredErrorLevel)) { throw new QCallerException('Error handler is not currently overridden. Cannot reset something that was never overridden.'); } if (QApplicationBase::$intStoredErrorLevel != -1) { error_reporting(QApplicationBase::$intStoredErrorLevel); } restore_error_handler(); QApplicationBase::$intStoredErrorLevel = null; }