From: Sara Golemon Date: Mon, 25 Aug 2003 22:26:37 +0000 (+0000) Subject: MFH(r-1.61) Bugfix#25239 Closing control stream while data stream is open violates... X-Git-Tag: php-4.3.4RC1~193 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=652147def5842db4ddf152256e2dbe8400f54902;p=php MFH(r-1.61) Bugfix#25239 Closing control stream while data stream is open violates RFC959 section 2.3 --- diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index 0dc91752e5..7c1930f92d 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -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);