Daniel Opitz
Daniel Opitz
There is a way to test it. Of course, an internal Exception would be better, I know. ```php $zipFile->deleteFromGlob('**.{xml,json}'); if(isset($zipFile['composer.json'])); { throw new \PhpZip\Exception\ZipException('The file could not be deleted'); }...
I guess you are mixing some concerns. This has nothing to do with the PHP language and the script mode. To make sure that your application specific config options are...
Just to be clear. My answer was only related to your first question. I know how errors should be better handled. Note that I'm not a maintainer of this package...
Have you tried to install `phpspec/prophecy`? ``` composer require phpspec/prophecy --dev ``` I guess the problem could be solved by adding `phpspec/prophecy` as a dev dependency to the project. `TestCase::prophesize()`...
I think there is no issue with the library, see here: * https://github.com/Ne-Lexa/php-zip/issues/30#issuecomment-903320351 * https://github.com/Ne-Lexa/php-zip/issues/32#issuecomment-903321958
I have tried to reproduce this issue on Windows 10. When I extract the file with 7-ZIP the password-protected ZIP file can be extracted. But when I use the Windows...
Please add at least reproducible example code. Thanks.
Windows supports only PKWARE and ZipCrypto password encrypted ZIP files. Try this: ```php use PhpZip\Constants\ZipEncryptionMethod; // ... $zipFile->setPassword('password', ZipEncryptionMethod::PKWARE); ```
I've had the same issue. You may try to use another build-image: ```yaml build: image: default-bionic ```