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/zlib/zlib_fopen_wrapper.c | |
parent | 68b18b05fe9c715b342867201f9130f0bb5cde9d (diff) | |
download | php-git-5ee65bd8f5e6b3b205bc3eb08e019f2a15c07a35.tar.gz |
Phase 1 of wrapper OO cleanup.
# Collecting underpants
Diffstat (limited to 'ext/zlib/zlib_fopen_wrapper.c')
-rw-r--r-- | ext/zlib/zlib_fopen_wrapper.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c index 434719dae5..c6e60e3638 100644 --- a/ext/zlib/zlib_fopen_wrapper.c +++ b/ext/zlib/zlib_fopen_wrapper.c @@ -92,7 +92,7 @@ php_stream_ops php_stream_gzio_ops = { NULL, "ZLIB" }; -php_stream *php_stream_gzopen(char *path, char *mode, int options, char **opened_path, void *wrappercontext STREAMS_DC TSRMLS_DC) +php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path STREAMS_DC TSRMLS_DC) { struct php_gz_stream_data_t *self; php_stream *stream = NULL; @@ -126,9 +126,13 @@ php_stream *php_stream_gzopen(char *path, char *mode, int options, char **opened return NULL; } -php_stream_wrapper php_stream_gzip_wrapper = { +static php_stream_wrapper_ops gzip_stream_wops = { php_stream_gzopen, - NULL, + NULL +}; + +php_stream_wrapper php_stream_gzip_wrapper = { + &gzip_stream_wops, NULL }; |