From: Derick Rethans Date: Mon, 6 Jun 2005 12:39:57 +0000 (+0000) Subject: - Fixed bug #33242 (Mangled error message when stream fails). X-Git-Tag: php-5.0.1b1~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6ae4a98be1251467cb712dd36c4ed3e9e849ec9;p=php - Fixed bug #33242 (Mangled error message when stream fails). --- 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;