diff options
author | Wez Furlong <wez@php.net> | 2002-04-06 17:29:39 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-04-06 17:29:39 +0000 |
commit | 62538caa862e582523dad0f261c0d8ed6ae0cbf6 (patch) | |
tree | 0e24b515cfb9edc2483aaca94c8cdd709029ad09 /ext/zlib/zlib_fopen_wrapper.c | |
parent | d449021900db02396db8f8a512ba9fdac9913a6c (diff) | |
download | php-git-62538caa862e582523dad0f261c0d8ed6ae0cbf6.tar.gz |
Added BC support for old style zlib: wrapper.
Added notice when a requested wrapper is not found.
# This BC thing was giving me nightmares.
# It took me 10 minutes to realize I hadn't compiled in zlib support also.
Diffstat (limited to 'ext/zlib/zlib_fopen_wrapper.c')
-rw-r--r-- | ext/zlib/zlib_fopen_wrapper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c index c345241aa6..2ed6d3b01a 100644 --- a/ext/zlib/zlib_fopen_wrapper.c +++ b/ext/zlib/zlib_fopen_wrapper.c @@ -102,6 +102,8 @@ php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, char *path, char *mod if (strncasecmp("zlib://", path, 7) == 0) path += 7; + else if (strncasecmp("zlib:", path, 5) == 0) + path += 5; self->stream = php_stream_open_wrapper(path, mode, STREAM_MUST_SEEK|options, opened_path); |