Giter VIP home page Giter VIP logo

phpzipmerge's People

Contributors

grandt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

phpzipmerge's Issues

Inconsistent zip

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

Corrupt zip file

I tried to use PHPZipMerge but it returns a corrupt zip file.

            $zipMerge = new ZipMerge\Zip\Stream\ZipMerge('mergedLicenses.zip');
            $zipMerge->appendZip("../FTP/20140331/240673207.zip", "20140331");
            $zipMerge->appendZip("../FTP/20140925/240673207.zip", "20140925");
            $zipMerge->finalize();

Any ideas?

Corrupt zip file... again

Again I have the same problem as last tuesday.

code is:
$zipMerge = new ZipMerge\Zip\Stream\ZipMerge('mergedLicenses.zip');
$zipMerge->appendZip('../FTP/20140925/1436540537.zip', '20140925');
$zipMerge->appendZip('../FTP/20140925/428984547.zip', '20140925');
$zipMerge->appendZip('../FTP/20140925/903291386.zip', '20140925');
$zipMerge->finalize();

I shared with you the files involved in Dropbox

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.