From: Thies C. Arntzen Date: Thu, 6 Jul 2000 11:25:24 +0000 (+0000) Subject: @- Fixed crash in gzopen(). (Thies) X-Git-Tag: PRE_METHOD_CALL_SEPERATE_FIX_PATCH~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b70aaf12d95dd640203b6141bf2e730dbfa705f;p=php @- Fixed crash in gzopen(). (Thies) # hmm - this should be rethought as one should be able to do # gzopen("http://..") --- 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;