diff options
Diffstat (limited to 'ext/ftp/php_ftp.c')
-rw-r--r-- | ext/ftp/php_ftp.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 07f8ff59a6..e8b34c60c4 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -132,16 +132,7 @@ PHP_MINIT_FUNCTION(ftp) } #define FILEP(fp, pval) { \ - int id, type; \ - int le_fp; \ - le_fp = php3i_get_le_fp(); \ - convert_to_long(pval); \ - id = (pval)->value.lval; \ - (fp) = php3_list_find(id, &type); \ - if (!(fp) || type != le_fp) { \ - php_error(E_WARNING, "Unable to find fp %d", id); \ - RETURN_FALSE; \ - } \ + ZEND_FETCH_RESOURCE(fp, FILE *, &pval, -1, "File-Handle", php_file_le_fopen()); \ } /* {{{ proto int ftp_connect(string host [, int port]) |