diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2003-04-03 00:55:45 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2003-04-03 00:55:45 +0000 |
commit | f4dd99e8b8b9531d9af4ef60fe6711f5c49c4415 (patch) | |
tree | c7134dd40e0ac2de2d8bd81f0cdc1fd2d57bfd11 | |
parent | 485c71abf77fe852fc312d0d84b63e58df10e66a (diff) | |
download | php-git-f4dd99e8b8b9531d9af4ef60fe6711f5c49c4415.tar.gz |
Fixed bug #23004 (When ftp_close() is called, sent QUIT to the ftp server)
-rw-r--r-- | ext/ftp/php_ftp.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } /* }}} */ |