Ne-Lexa / php-zip

PhpZip is a php-library for extended work with ZIP-archives.
MIT License
494 stars 60 forks source link

deflate issue #15

Closed thpglobal closed 4 years ago

thpglobal commented 6 years ago

I'm getting an error on any file larger than about 100k. I get the following:

Warning: gzinflate(): data error in /base/data/home/apps/p~thpbudget/1.407842557676832689/php-zip/src/PhpZip/Stream/ZipInputStream.php on line 439 Fatal error: Uncaught exception 'PhpZip\Exception\Crc32Exception' with message 'xl/worksheets/sheet3.xml (expected CRC32 value 0x7fffffff, but is actually 0x0)' in /base/data/home/apps/p~thpbudget/1.407842557676832689/php-zip/src/PhpZip/Stream/ZipInputStream.php:459 Stack trace: #0 /base/data/home/apps/p~thpbudget/1.407842557676832689/php-zip/src/PhpZip/Model/Entry/ZipSourceEntry.php(65): PhpZip\Stream\ZipInputStream->readEntryContent(Object(PhpZip\Model\Entry\ZipSourceEntry)) #1 /base/data/home/apps/p~thpbudget/1.407842557676832689/php-zip/src/PhpZip/ZipFile.php(350): PhpZip\Model\Entry\ZipSourceEntry->getEntryContent() #2 /base/data/home/apps/p~thpbudget/1.407842557676832689/app/import.php(27): PhpZip\ZipFile->extractTo('vfs://root/temp') #3 {main} thrown in /base/data/home/apps/p~thpbudget/1.407842557676832689/php-zip/src/PhpZip/Stream/ZipInputStream.php on line 459

What do you suggest? Should I tell it to ignore crc32 checks or something?