[wp-trac] Re: [WordPress Trac] #10104: PCLZIP_ERR_BAD_FORMAT (-10) after changeset 11524

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 11 21:35:05 GMT 2009

#10104: PCLZIP_ERR_BAD_FORMAT (-10) after changeset 11524
 Reporter:  demetris         |       Owner:  dd32                         
     Type:  defect (bug)     |      Status:  new                          
 Priority:  normal           |   Milestone:  2.8.1                        
Component:  Upgrade/Install  |     Version:  2.8                          
 Severity:  major            |    Keywords:  needs-patch reporter-feedback
Changes (by westi):

 * cc: westi (added)
  * keywords:  needs-patch => needs-patch reporter-feedback


 It would be good to see what the malformed zip file looks like.

 If you hack wp-admin/includes/class-wp-upgrader.php to change the code so
 as to not delete the downloaded file on unpacking:

         function unpack_package($package, $delete_package = true) {

                 // Unzip package to working directory
                 $result = unzip_file($package, $working_dir); //TODO
 optimizations, Copy when Move/Rename would suffice?

                 // Once extracted, delete the package if required.
                 if ( $delete_package )

 And then share the corrupted file.


Ticket URL: <http://core.trac.wordpress.org/ticket/10104#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list