Grandt/PHPZip — Issue #3: extra bytes and bad offsets
Author: johnnyfreeman
Created: 2012-02-21 17:38:50+00:00
State: open

When I try to extract the ZipStreamExample1s.zip file with Archive Utility it produces a .cpgz file. If I try to extract the .cpgz file, it produces another .zip file, and this just loops.

However, when I try to extract using the `unzip` command via the Terminal I get this:

```$ unzip ZipStreamExample1s.zip
Archive: ZipStreamExample1s.zip
Example Zip file for Large file sets.
warning [ZipStreamExample1s.zip]: 1106 extra bytes at beginning or within zipfile
(attempting to process anyway)
file #1: bad zipfile offset (local header sig): 1106
(attempting to re-compensate)
file #1: bad zipfile offset (local header sig): 1106
file #2: bad zipfile offset (local header sig): 148
(attempting to re-compensate)
extracting: Empty Dir```

I have Googled the crap out of this issue and have not found anything that fixes it. Please help!