]> granicus.if.org Git - php/commitdiff
@- Fixed crash in gzopen(). (Thies)
authorThies C. Arntzen <thies@php.net>
Thu, 6 Jul 2000 11:25:24 +0000 (11:25 +0000)
committerThies C. Arntzen <thies@php.net>
Thu, 6 Jul 2000 11:25:24 +0000 (11:25 +0000)
# hmm - this should be rethought as one should be able to do
# gzopen("http://..")

ext/zlib/zlib.c

index 69b2484d0d35afe62273765fb9fbbaa826893880..4f52bb65531b98ee362394539e09404fc5d81e82 100644 (file)
@@ -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;