From 2d4b98bf8bd4019349ac104cbada86deb7a7e0f4 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Mon, 6 Jun 2005 12:41:28 +0000 Subject: [PATCH] - Fixed bug #33242 (Mangled error message when stream fails). --- NEWS | 1 + ext/standard/http_fopen_wrapper.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/NEWS b/NEWS index 1b4f5dcff3..3601d9032c 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,7 @@ PHP NEWS - Fixed memory corruption in ImageTTFText() with 64bit systems. (Andrey) - Fixed memory corruption in stristr(). (Derick) - Fixed segfaults when CURL callback functions throw exception. (Tony) +- Fixed bug #33242 (Mangled error message when stream fails). (Derick) - Fixed bug #33222 (segfault when CURL handle is closed in a callback). (Tony) - Fixed bug #33214 (odbc_next_result does not signal SQL errors with 2-statement SQL batches). (rich at kastle dot com, Tony) diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c index 6d2869b61b..dfa2133e50 100644 --- a/ext/standard/http_fopen_wrapper.c +++ b/ext/standard/http_fopen_wrapper.c @@ -101,6 +101,8 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path, char *transport_string, *errstr = NULL; int transport_len, have_header = 0, request_fulluri = 0; + tmp_line[0] = '\0'; + if (redirect_max < 1) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Circular redirect, aborting."); return NULL; -- 2.40.0