]> granicus.if.org Git - php/commitdiff
- Fixed bug #33242 (Mangled error message when stream fails).
authorDerick Rethans <derick@php.net>
Mon, 6 Jun 2005 12:41:28 +0000 (12:41 +0000)
committerDerick Rethans <derick@php.net>
Mon, 6 Jun 2005 12:41:28 +0000 (12:41 +0000)
NEWS
ext/standard/http_fopen_wrapper.c

diff --git a/NEWS b/NEWS
index 1b4f5dcff3c0e5598082ac0a750c9d405330341c..3601d9032cd947543ddb2551a590f70a519ef5d2 100644 (file)
--- 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)
index 6d2869b61b0e3181c90aa33d80258d6d24fe1e52..dfa2133e508ebf8c19a75aa0de82ba2008d5aafd 100644 (file)
@@ -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;