svn: /php/php-src/trunk/ext/zip/ zip_stream.c
| From: | Pierre-Alain Joye | Date: | Tue, 11 Aug 2009 17:19:35 +0000 |
| Subject: | svn: /php/php-src/trunk/ext/zip/ zip_stream.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60103@lists.php.net to get a copy of this message | ||
pajoye Tue, 11 Aug 2009 17:19:35 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=287104
Log:
- destroy the file entry stream first
Changed paths:
U php/php-src/trunk/ext/zip/zip_stream.c
Modified: php/php-src/trunk/ext/zip/zip_stream.c
===================================================================
--- php/php-src/trunk/ext/zip/zip_stream.c 2009-08-11 17:15:24 UTC (rev 287103)
+++ php/php-src/trunk/ext/zip/zip_stream.c 2009-08-11 17:19:35 UTC (rev 287104)
@@ -68,14 +68,14 @@
{
STREAM_DATA_FROM_STREAM();
if (close_handle) {
+ if (self->zf) {
+ zip_fclose(self->zf);
+ self->zf = NULL;
+ }
if (self->za) {
zip_close(self->za);
self->za = NULL;
}
- if (self->zf) {
- zip_fclose(self->zf);
- self->zf = NULL;
- }
}
efree(self);
stream->abstract = NULL;