Open
Description
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.