php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | |
Patch 64452.patch for Zip Related Bug #64452Patch version 2013-03-19 18:15 UTC Return to Bug #64452 | Download this patchThis patch renders other patches obsolete Obsolete patches: Patch Revisions: 2013-03-19 18:15 UTC | 2013-03-19 18:03 UTC | 2013-03-19 15:12 UTCDeveloper: ab@php.netdiff --git a/ext/zip/lib/zip_close.c b/ext/zip/lib/zip_close.c index 362f92d..d13134a 100644 index 362f92d..e66c566 100644 --- a/ext/zip/lib/zip_close.c +++ b/ext/zip/lib/zip_close.c @@ -164,9 +164,10 @@ zip_close(struct zip *za) @@ -88,6 +88,9 @@ zip_close(struct zip *za) if (za == NULL) return -1; + if (za->zp == NULL) + return -1; + if (!_zip_changed(za, &survivors)) { _zip_free(za); return 0; @@ -164,9 +167,10 @@ zip_close(struct zip *za) for (j=0; j<survivors; j++) { i = filelist[j].idx; + _zip_dirent_init(&de); |
Copyright © 2001-2024 The PHP Group All rights reserved. |
Last updated: Thu Apr 18 14:01:31 2024 UTC |