/** * Resets the configuration of the class * * @internal * * @return void */ public static function reset() { if (self::$handles_errors) { restore_error_handler(); } if (self::$handles_exceptions) { restore_exception_handler(); } if (is_array(self::$captured_errors)) { restore_error_handler(); } self::$captured_error_regex = NULL; self::$captured_errors_previous_handler = NULL; self::$captured_error_types = NULL; self::$captured_errors = NULL; self::$context_shown = FALSE; self::$debug = NULL; self::$debug_callback = NULL; self::$dynamic_constants = FALSE; self::$error_destination = 'html'; self::$error_message_queue = array(); self::$exception_destination = 'html'; self::$exception_handler_callback = NULL; self::$exception_handler_parameters = array(); self::$exception_message = NULL; self::$handles_errors = FALSE; self::$handles_exceptions = FALSE; self::$show_context = TRUE; }