You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a version of PHP that is compatible with your used
ZipStream version.
I'm using the latest release of the used ZipStream major version.
Summary
I'm using the SIMULATE_STRICT Operation Mode to add the Content-Length header as documented here but I'm running into an error with zero-byte files (think .gitkeep etc)
Current behavior
A SimulationFileUnknownException is thrown when calling addFileFromCallback() and the exactSize is 0.
How to reproduce
Set the Operation Mode to SIMULATE_STRICT and add a file that has a size of zero bytes.
ZipStream-PHP version
3.1.0
PHP version
8.3.3
Constraints for Bug Report
I'm using a version of ZipStream that is currently supported:
https://github.com/maennchen/ZipStream-PHP#version-support
I'm using a version of PHP that has active support:
https://www.php.net/supported-versions.php
I'm using a version of PHP that is compatible with your used
ZipStream version.
I'm using the latest release of the used ZipStream major version.
Summary
I'm using the SIMULATE_STRICT Operation Mode to add the Content-Length header as documented here but I'm running into an error with zero-byte files (think .gitkeep etc)
Current behavior
A SimulationFileUnknownException is thrown when calling addFileFromCallback() and the exactSize is 0.
How to reproduce
Set the Operation Mode to SIMULATE_STRICT and add a file that has a size of zero bytes.
Expected behavior
(Hopefully) it is possible to use the SIMULATE_STRICT Operation Mode with empty files.
The text was updated successfully, but these errors were encountered: