]> granicus.if.org Git - php/commitdiff
Fixed bug #23004 (When ftp_close() is called, sent QUIT to the ftp server)
authorIlia Alshanetsky <iliaa@php.net>
Thu, 3 Apr 2003 00:55:45 +0000 (00:55 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 3 Apr 2003 00:55:45 +0000 (00:55 +0000)
ext/ftp/php_ftp.c

index 8f951d86a2b386fb304c7e60114507073b55f6e0..e6de1d548f50ac169502d6786f28156958a9d956 100644 (file)
@@ -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);
 }
 /* }}} */