Skip to content

Inconsistent zip #7

@jlgrall

Description

@jlgrall

When I create a zip using the php ZipArchive, then merge it using PHPZipMerge, I get an inconsistent error on the merged zip.

Steps to reproduce:

  • In the PHPZipMerge repository, create a subdirectory (ex.: 'test_merge')
  • Inside that subdirectory, download the test script test_PHPZipMerge_INCONS.php
  • Run the test script: php test_PHPZipMerge_INCONS.php

The test script test_PHPZipMerge_INCONS.php creates a new src.zip using ZipArchive, then merges it to merged.zip using PHPZipMerge, then checks the consistency of the merged zip using ZipArchive.

Both src.zip and merged.zip can be extracted correctly. I don't know why ZipArchive tells that merged.zip is inconsistent. A binary diff indicates a difference in the last 25 bytes or so.

I have PHP 7.0.6 on Mac OS 10.6.8

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions