From: Pierre Joye Date: Tue, 11 Aug 2009 17:19:35 +0000 (+0000) Subject: - destroy the file entry stream first X-Git-Tag: php-5.4.0alpha1~191^2~2812 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d7c5eaee2b853dccbf51b89920d612418cb6ce2;p=php - destroy the file entry stream first --- 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;