diff options
author | Wez Furlong <wez@php.net> | 2002-09-25 15:46:47 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-09-25 15:46:47 +0000 |
commit | 0141e970526bf07dc37d2519c444b6d83fe1863c (patch) | |
tree | 045b681cf8a1e00d122b7db8183000bf80f8c622 /ext/ftp/php_ftp.c | |
parent | 696e0a2301f2641d2ef8c4f94f0287ddbcb6ae10 (diff) | |
download | php-git-0141e970526bf07dc37d2519c444b6d83fe1863c.tar.gz |
Make these all work with persistent streams too.
Diffstat (limited to 'ext/ftp/php_ftp.c')
-rw-r--r-- | ext/ftp/php_ftp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index d1aa51b45f..b7d00e57b9 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -476,7 +476,7 @@ PHP_FUNCTION(ftp_async_fget) } ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); - ZEND_FETCH_RESOURCE(stream, php_stream*, &z_file, -1, "File-Handle", php_file_le_stream()); + php_stream_from_zval(stream, &z_file); XTYPE(xtype, mode); /* ignore autoresume if autoseek is switched off */ @@ -702,7 +702,7 @@ PHP_FUNCTION(ftp_fput) } ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); - ZEND_FETCH_RESOURCE(stream, php_stream*, &z_file, -1, "File-Handle", php_file_le_stream()); + php_stream_from_zval(stream, &z_file); XTYPE(xtype, mode); /* ignore autoresume if autoseek is switched off */ @@ -748,7 +748,7 @@ PHP_FUNCTION(ftp_async_fput) } ZEND_FETCH_RESOURCE(ftp, ftpbuf_t*, &z_ftp, -1, le_ftpbuf_name, le_ftpbuf); - ZEND_FETCH_RESOURCE(stream, php_stream*, &z_file, -1, "File-Handle", php_file_le_stream()); + php_stream_from_zval(stream, &z_file); XTYPE(xtype, mode); /* ignore autoresume if autoseek is switched off */ |