Recent versions of 7-Zip report an error for any zip file created with ArchiveStream.
$ 7z t example.zip
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=hu_HU.UTF-8,Utf16=on,HugeFiles=on,64 bits,2 CPUs Intel(R) Xeon(R) CPU E5640 @ 2.67GHz (206C2),ASM)
Scanning the drive for archives:
1 file, 936 bytes (1 KiB)
Testing archive: example.zip
ERRORS:
Headers Error
WARNINGS:
Headers Error
--
Path = example.zip
Type = zip
ERRORS:
Headers Error
WARNINGS:
Headers Error
Physical Size = 936
64-bit = +
Archives with Errors: 1
Warnings: 1
Open Errors: 1
example.zip was created using the following code:
<?php
require_once('src/Archive.php');
require_once('src/ZipArchive.php');
use Barracuda\ArchiveStream\ZipArchive;
$zip = new ZipArchive('example.zip');
$zip->add_file_from_path('LICENSE', 'LICENSE');
$zip->finish();
PHP output was simply redirected to ZIP file:
php example.php > example.zip
Older 7-Zip versions (for example 9.20) do not report any problems about the same file:
$ 7z t example.zip
7-Zip 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=hu_HU.UTF-8,Utf16=on,HugeFiles=on,2 CPUs)
Processing archive: example.zip
Testing LICENSE
Everything is Ok
Size: 1144
Compressed: 938
Most of out clients use Windows. Some of them reported difficulties to extract our ZIP files. Recommended them to use 7-Zip, downloaded recent version (18.01) tested a file, got Headers Error.
Recent versions of 7-Zip report an error for any zip file created with ArchiveStream.
example.zipwas created using the following code:PHP output was simply redirected to ZIP file:
Older 7-Zip versions (for example 9.20) do not report any problems about the same file:
Most of out clients use Windows. Some of them reported difficulties to extract our ZIP files. Recommended them to use 7-Zip, downloaded recent version (18.01) tested a file, got
Headers Error.