diff options
author | Wez Furlong <wez@php.net> | 2002-04-16 22:14:27 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-04-16 22:14:27 +0000 |
commit | b10b24d50cd4fb584897badee0c6b809b02d7fcb (patch) | |
tree | 7f616a36aab17efb68f83ec3075b454eb4b34356 /ext/zlib/zlib_fopen_wrapper.c | |
parent | fe2badf64eb32c290e681dd531a27c5467b0867b (diff) | |
download | php-git-b10b24d50cd4fb584897badee0c6b809b02d7fcb.tar.gz |
Always initialize wrappers, regardless of PG(allow_url_fopen).
Add is_url field to wrapper structure; the stream wrapper openers
will disallow opening is is_url && !PG(allow_url_fopen).
Add infrastructure for stat($url) and opendir($url).
Tidy up/centralize code that locates and instantiates wrappers for the
various operations.
Implement opendir for plain files.
Make the PHP opendir and dir functions use the streams implementations.
Add modelines for syntax highlighting the pear scripts in vim
Diffstat (limited to 'ext/zlib/zlib_fopen_wrapper.c')
-rw-r--r-- | ext/zlib/zlib_fopen_wrapper.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c index bdc2b5a882..0886689634 100644 --- a/ext/zlib/zlib_fopen_wrapper.c +++ b/ext/zlib/zlib_fopen_wrapper.c @@ -132,12 +132,15 @@ php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, char *path, char *mod static php_stream_wrapper_ops gzip_stream_wops = { php_stream_gzopen, + NULL, + NULL, NULL }; php_stream_wrapper php_stream_gzip_wrapper = { &gzip_stream_wops, - NULL + NULL, + 0, /* is_url */ }; |