Repository navigation
First release in four years - the project is maintained again.
Security
- Fixed ZIP Slip via Windows backslash traversal in
ZipFile::extractTo()(#100). Entry names are now split on both/and\, and drive-relative, UNC and stream-wrapper style names are rejected with aZipException. - Fixed symlink escape in
extractTo()withZipOptions::EXTRACT_SYMLINKS(#101). Symlink targets that resolve outside the extraction directory are now skipped instead of created (same bug class as CVE-2024-12718 in CPython).
Compatibility
- PHP 8.5 is fully supported and tested. PHP 8.4/8.5 stream filter warnings are converted to
ZipExceptionuniformly. - Compatibility with
psr/http-message2.0 (PSR-7 v2 added native return types toStreamInterface). - Dev dependency
guzzlehttp/psr7bumped to^2.0(v1 is blocked by the composer security advisory policy).
Changed
symfony/finderandsymfony/http-foundationconstraints pinned to^5.4 || ^6.0 || ^7.0 || ^8.0.- Reworded user-facing exception messages for correct English.
- Added missing zip platform constants (#80).
- CI now tests PHP 7.4, 8.0 - 8.5 on Ubuntu, macOS and Windows, with a dedicated Psalm job. The PHP version badge and supported versions table were added to the README.
Notes
- The library still supports PHP 7.4+.
- 18 regression tests were added for the security fixes.
Full changelog: 4.0.2...4.1.0