From 5d7c5eaee2b853dccbf51b89920d612418cb6ce2 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Tue, 11 Aug 2009 17:19:35 +0000 Subject: [PATCH] - destroy the file entry stream first --- ext/zip/zip_stream.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/zip/zip_stream.c b/ext/zip/zip_stream.c index 202e2a44f5..7b181f10e7 100644 --- a/ext/zip/zip_stream.c +++ b/ext/zip/zip_stream.c @@ -68,14 +68,14 @@ static int php_zip_ops_close(php_stream *stream, int close_handle TSRMLS_DC) { STREAM_DATA_FROM_STREAM(); if (close_handle) { - if (self->za) { - zip_close(self->za); - self->za = NULL; - } if (self->zf) { zip_fclose(self->zf); self->zf = NULL; } + if (self->za) { + zip_close(self->za); + self->za = NULL; + } } efree(self); stream->abstract = NULL; -- 2.50.1