Interesting problem

Recommend this page to a friend!

      PHP Zip Merge  >  All threads  >  Interesting problem  >  (Un) Subscribe thread alerts  
Subject:Interesting problem
Summary:ZipMerge seems to be appending 2 additional "00" bytes
Author:Scott McCandless
Date:2016-08-22 16:09:18

  1. Interesting problem   Reply   Report abuse  
Picture of Scott McCandless Scott McCandless - 2016-08-22 16:09:18
I created a zip file and opened it in a Hex editor. The last 3 bytes were 00 00 00. I added that same file using ZipMerge and the file now ends in 00 00 00 00 00. When I unzip the file I get a message that says "There are some data after the end of the payload data". As a quick and dirty test I modified "/grandt/phpzipmerge/src/ZipMerge/Zip/Stream/ZipMerge.php" line 211 to be "$this->zipWrite(substr(''.$this->eocd, 0, -2));" The problem seems to be fixed. Not sure where those to additional 00 00 bytes come from.

Thanks for a GREAT utility!



For more information send a message to info at phpclasses dot org.