]> granicus.if.org Git - php/commitdiff
MFH(r-1.61) Bugfix#25239 Closing control stream while data stream is open violates...
authorSara Golemon <pollita@php.net>
Mon, 25 Aug 2003 22:26:37 +0000 (22:26 +0000)
committerSara Golemon <pollita@php.net>
Mon, 25 Aug 2003 22:26:37 +0000 (22:26 +0000)
ext/standard/ftp_fopen_wrapper.c

index 0dc91752e5841ae12df37439039f5bf468c8e707..7c1930f92dcbb9f2199607986b0fa5208353ac3e 100644 (file)
@@ -423,13 +423,6 @@ php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, ch
                datastream = NULL;
                goto errexit;   
        }
-       
-       /* close control connection if not in ssl mode */
-       if (!use_ssl) {
-               php_stream_write_string(stream, "QUIT\r\n");
-               php_stream_close(stream);
-               stream = NULL;
-       }
                
        php_stream_context_set(datastream, context);
        php_stream_notify_progress_init(context, 0, file_size);