From: Dmitry Stogov Date: Thu, 26 Apr 2007 12:52:58 +0000 (+0000) Subject: Prevent double close() of the same file handle X-Git-Tag: php-5.2.2RC2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69cfe50f74a3625f6ba7cb48a393a3e23344a3de;p=php Prevent double close() of the same file handle --- diff --git a/ext/zlib/zlib_fopen_wrapper.c b/ext/zlib/zlib_fopen_wrapper.c index 64bee4928e..5e45edc31f 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; } }