From c6ae4a98be1251467cb712dd36c4ed3e9e849ec9 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 6 Jun 2005 12:39:57 +0000 Subject: [PATCH] - Fixed bug #33242 (Mangled error message when stream fails). --- ext/standard/http_fopen_wrapper.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index f34910eb16..214914b47c 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -103,6 +103,8 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path, char *protocol_version = NULL; int protocol_version_len = 3; /* Default: "1.0" */ + tmp_line[0] = '\0'; + if (redirect_max < 1) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Redirection limit reached, aborting."); return NULL; -- 2.50.1