Skip to content

Exctracted files are empty #6

Open
@uvo

Description

@uvo

Hi
I'm using PhpZip 3.0.0 (2017-03-15) with a password to generate a zip. After extracting all files (images) have zero bytes. Working without a pw everything works fine.

My code to generate the zip-file:
$zipFile
->withNewPassword( $password )
->addDir( $dirToZip )
->saveAsFile( $outputFilenamePwPotected )
->close();

The code to extract:
$zipFile
->openFile( $outputFilenamePwPotected
->withReadPassword($password)
//->withoutPassword()// => no changes if not commented
->extractTo( $directory );

All files will be listed ($zipFile->getListFiles()) and counted ($zipFile->count()) correct but have zero bytes.
Is there a option I'm missing? Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions