summaryrefslogtreecommitdiff
path: root/ext/zlib
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-03-21 17:02:50 +0000
committerWez Furlong <wez@php.net>2002-03-21 17:02:50 +0000
commit06f6e47e4c7662a0d65d3518c88180f66fdb267b (patch)
treefbd09c1c7caeeb0ec83bbb2d5b18a3ea536a7cfc /ext/zlib
parent8c0fd5bc3504a8c5c2b5117b82693c6335e0fdf3 (diff)
downloadphp-git-06f6e47e4c7662a0d65d3518c88180f66fdb267b.tar.gz
Require that wrappers use <protocol>://<path> to avoid
ambiguities when filenames have ':' characters. This slightly breaks BC with the old style zlib: wrapper.
Diffstat (limited to 'ext/zlib')
-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 a12abf1996..434719dae5 100644
--- a/ext/zlib/zlib_fopen_wrapper.c
+++ b/ext/zlib/zlib_fopen_wrapper.c
@@ -99,8 +99,8 @@ php_stream *php_stream_gzopen(char *path, char *mode, int options, char **opened
self = emalloc(sizeof(*self));
- if (strncmp("zlib:", path, 5) == 0)
- path += 5;
+ if (strncasecmp("zlib://", path, 7) == 0)
+ path += 7;
self->stream = php_stream_open_wrapper(path, mode, STREAM_MUST_SEEK|options, opened_path);