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;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php