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

diff --git a/NEWS b/NEWS
index cdd463ec88a78f1944a5fe091dcfd11858ada2c8..4abc2533f57ab2b597c742dbfbbf134efb66b72c 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ PHP 4                                                                      NEWS
 - Fixed memory corruptions when using references in a wrong way. (Marcus,
   Dmitry, Derick)
 - Fixed memory corruption in stristr(). (Derick)
+- 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 0e2bc274ab8466c1aa79c70bd1a6bfe11e0351e2..c67688d300e902753bef4f34a6fdd7be6878317a 100644 (file)
@@ -107,6 +107,8 @@ php_stream *php_stream_url_wrap_http_ex(php_stream_wrapper *wrapper, char *path,
        size_t chunk_size = 0, file_size = 0;
        int eol_detect, have_header = 0;
 
+       tmp_line[0] = '\0';
+
        if (redirect_max < 1) {
                php_error_docref(NULL TSRMLS_CC, E_WARNING, "Circular redirect, aborting.");
                return NULL;