summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>2000-07-06 11:25:24 +0000
committerThies C. Arntzen <thies@php.net>2000-07-06 11:25:24 +0000
commit2b70aaf12d95dd640203b6141bf2e730dbfa705f (patch)
treebb123ece1cca2b39c91eff9e2f1369cd2cbabc29
parent81ded022e06add76d3f00c2eba4e19bce5bd2b65 (diff)
downloadphp-git-2b70aaf12d95dd640203b6141bf2e730dbfa705f.tar.gz
@- Fixed crash in gzopen(). (Thies)
# hmm - this should be rethought as one should be able to do # gzopen("http://..")
-rw-r--r--ext/zlib/zlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 69b2484d0d..4f52bb6553 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -153,8 +153,9 @@ PHP_MINFO_FUNCTION(zlib)
static gzFile php_gzopen_wrapper(char *path, char *mode, int options)
{
FILE *f;
+ int issock=0, socketd=0;
- f = php_fopen_wrapper(path, mode, options, NULL, NULL, NULL);
+ f = php_fopen_wrapper(path, mode, options, &issock, &socketd, NULL);
if (!f) {
return NULL;