diff options
author | Wez Furlong <wez@php.net> | 2002-03-24 18:05:49 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-03-24 18:05:49 +0000 |
commit | 5ee65bd8f5e6b3b205bc3eb08e019f2a15c07a35 (patch) | |
tree | bd26669c2ff51733c3885aba15e1536dd1bc6d52 /ext/standard/ftp_fopen_wrapper.c | |
parent | 68b18b05fe9c715b342867201f9130f0bb5cde9d (diff) | |
download | php-git-5ee65bd8f5e6b3b205bc3eb08e019f2a15c07a35.tar.gz |
Phase 1 of wrapper OO cleanup.
# Collecting underpants
Diffstat (limited to 'ext/standard/ftp_fopen_wrapper.c')
-rw-r--r-- | ext/standard/ftp_fopen_wrapper.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/standard/ftp_fopen_wrapper.c b/ext/standard/ftp_fopen_wrapper.c index 6ef61b9e7b..70bf9e68ae 100644 --- a/ext/standard/ftp_fopen_wrapper.c +++ b/ext/standard/ftp_fopen_wrapper.c @@ -77,16 +77,20 @@ static int php_get_ftp_result(php_stream *stream TSRMLS_DC) return strtol(tmp_line, NULL, 10); } -php_stream_wrapper php_stream_ftp_wrapper = { +static php_stream_wrapper_ops ftp_stream_wops = { php_stream_url_wrap_ftp, - NULL, + NULL +}; + +php_stream_wrapper php_stream_ftp_wrapper = { + &ftp_stream_wops, NULL }; /* {{{ php_fopen_url_wrap_ftp */ -php_stream * php_stream_url_wrap_ftp(char *path, char *mode, int options, char **opened_path, void *wrappercontext STREAMS_DC TSRMLS_DC) +php_stream * php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path STREAMS_DC TSRMLS_DC) { php_stream *stream=NULL; php_url *resource=NULL; |