summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib_fopen_wrapper.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-04-19 10:06:41 +0000
committerWez Furlong <wez@php.net>2002-04-19 10:06:41 +0000
commit928bae9cf885ea5e4d76f980de8459b6dcad0cd1 (patch)
treee52b900dcc9da71096a3badf527412da524820da /ext/zlib/zlib_fopen_wrapper.c
parentfe6990cc6b365cd0e1e3f1ddd81c93b9e8ae23e5 (diff)
downloadphp-git-928bae9cf885ea5e4d76f980de8459b6dcad0cd1.tar.gz
Make scheme part decoding rfc2396 compliant.
Change zlib:// and bzip2:// to compress.zlib:// and compress.bzip2:// Tidy up old socket/network code/comments.
Diffstat (limited to 'ext/zlib/zlib_fopen_wrapper.c')
-rw-r--r--ext/zlib/zlib_fopen_wrapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c
index 0886689634..034311b809 100644
--- a/ext/zlib/zlib_fopen_wrapper.c
+++ b/ext/zlib/zlib_fopen_wrapper.c
@@ -101,8 +101,8 @@ php_stream *php_stream_gzopen(php_stream_wrapper *wrapper, char *path, char *mod
self = emalloc(sizeof(*self));
- if (strncasecmp("zlib://", path, 7) == 0)
- path += 7;
+ if (strncasecmp("compress.zlib://", path, 16) == 0)
+ path += 16;
else if (strncasecmp("zlib:", path, 5) == 0)
path += 5;