php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #64452
Patch 64452.patch revision 2013-03-19 18:15 UTC by ab@php.net
revision 2013-03-19 18:03 UTC by ab@php.net
revision 2013-03-19 15:12 UTC by ab@php.net

Patch 64452.patch for Zip Related Bug #64452

Patch version 2013-03-19 18:15 UTC

Return to Bug #64452 | Download this patch
This 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 UTC

Developer: ab@php.net



  diff --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);
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 15:01:54 2014 UTC