From: Ilia Alshanetsky Date: Thu, 3 Apr 2003 00:55:45 +0000 (+0000) Subject: Fixed bug #23004 (When ftp_close() is called, sent QUIT to the ftp server) X-Git-Tag: php-4.3.2RC2~184 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4dd99e8b8b9531d9af4ef60fe6711f5c49c4415;p=php Fixed bug #23004 (When ftp_close() is called, sent QUIT to the ftp server) --- diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 8f951d86a2..e6de1d548f 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -1077,6 +1077,8 @@ PHP_FUNCTION(ftp_close) ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); + ftp_quit(ftp); + RETURN_BOOL(zend_list_delete(Z_LVAL_P(z_ftp)) == SUCCESS); } /* }}} */