summaryrefslogtreecommitdiff
path: root/ext/zlib/zlib_fopen_wrapper.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2002-03-16 18:42:42 +0000
committerWez Furlong <wez@php.net>2002-03-16 18:42:42 +0000
commit5d0c53eecf5e720dd73d14c602a3df9c752e3a67 (patch)
tree2fc775e01a59df0517b6f4ae884ea238053d4338 /ext/zlib/zlib_fopen_wrapper.c
parenta18000f163f7a5ec618ed1093d5b34b8e8feb631 (diff)
downloadphp-git-5d0c53eecf5e720dd73d14c602a3df9c752e3a67.tar.gz
Fix some issues with gzFile and fsockopen.
Diffstat (limited to 'ext/zlib/zlib_fopen_wrapper.c')
-rw-r--r--ext/zlib/zlib_fopen_wrapper.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c
index 31589f824b..5d3129f843 100644
--- a/ext/zlib/zlib_fopen_wrapper.c
+++ b/ext/zlib/zlib_fopen_wrapper.c
@@ -86,10 +86,9 @@ php_stream *php_stream_gzopen(char *path, char *mode, int options, char **opened
php_stream *stream = NULL;
self = emalloc(sizeof(*self));
-
- while(*path != ':')
- path++;
- path++;
+
+ if (strncmp("zlib:", path, 5) == 0)
+ path += 5;
self->stream = php_stream_open_wrapper(path, mode, options, opened_path TSRMLS_CC);