From aea00baec2a6c9d60aa8eb701599742e8c8ecccf Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 26 Apr 2007 12:53:34 +0000 Subject: [PATCH] Prevent double close() of the same file handle --- ext/zlib/zlib_fopen_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c index 452c9ac3ea..c3a5b238b8 100644 --- a/ext/zlib/zlib_fopen_wrapper.c +++ b/ext/zlib/zlib_fopen_wrapper.c @@ -76,7 +76,7 @@ static int php_gziop_close(php_stream *stream, int close_handle TSRMLS_DC) self->gz_file = NULL; } if (self->stream) { - php_stream_close(self->stream); + php_stream_free(self->stream, PHP_STREAM_FREE_CLOSE | PHP_STREAM_FREE_PRESERVE_HANDLE); self->stream = NULL; } } -- 2.40.0