]> 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:39:57 +0000 (12:39 +0000)
committerDerick Rethans <derick@php.net>
Mon, 6 Jun 2005 12:39:57 +0000 (12:39 +0000)
ext/standard/http_fopen_wrapper.c

index f34910eb168ab5af2e2511e6c4ac7bdf805040e2..214914b47c5864af7e372d18426059b2d570c447 100644 (file)
@@ -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;