From: Stefan Esser Date: Tue, 30 Jul 2002 20:37:59 +0000 (+0000) Subject: ftp_close returns now TRUE on success and FALSE on failure. X-Git-Tag: dev~93 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6cf14ac5c23a5364b1238e328686a80778fcf52;p=php ftp_close returns now TRUE on success and FALSE on failure. --- diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 1dac9e3443..e217b149dc 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -1021,7 +1021,7 @@ PHP_FUNCTION(ftp_close) ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); - zend_list_delete(Z_LVAL_P(z_ftp)); + RETURN_BOOL(zend_list_delete(Z_LVAL_P(z_ftp)) == SUCCESS); } /* }}} */