zip

A zip management extension


Zip is an extension to create, modify and read zip files.

License: PHP-3.01

Latest releases

Version Release Download
1.22.8 2026-03-06 zip-1.22.8.tgz
1.22.7 2025-09-25 zip-1.22.7.tgz
1.22.6 2025-05-07 zip-1.22.6.tgz
1.22.5 2025-02-20 zip-1.22.5.tgz
1.22.4 2024-09-26 zip-1.22.4.tgz
Show all releases

Changelog

Version Message
1.22.8 - Fixed bug GH-19932 Memory leak in zip setEncryptionName()/setEncryptionIndex() (David Carlier)
- Fix memory leak when passing enc_method/enc_password is passed as option for ZipArchive::addGlob()/addPattern()
and with consecutive calls. (David Carlier)
- Fix crash in property existence test. (ndossche)
- Don't truncate return value of zip_fread() with user sizes. (ndossche)
1.22.7 - compatibility with 8.5
- Fix leak when path is too long in ZipArchive::extractTo(). (nielsdos)
- Fix memory leak in zip when encountering empty glob result. (nielsdos)
- Fixed bug GH-19688 (Remove pattern overflow in zip addGlob()). (nielsdos)
1.22.6 - Fixed bug GH-17736 Assertion failure zend_reference_destroy (nielsdos)
- Fixed bug GH-18304 Changing the properties through dynamic properties triggers a SegFault (nielsdos)
- Fix uouv when handling empty options in ZipArchive::addGlob() (nielsdos)
- Fix memory leak when handling a too long path in ZipArchive::addGlob() (nielsdos)
- Fix GH-18431: Registering ZIP progress callback twice doesn't work (nielsdos)
- Fix GH-18438: Handling of empty data and errors in ZipArchive::addPattern (nielsdos)
- drop support for PHP 5.4 and 5.5
1.22.5 - Fix zip_entry_name() crash on invalid entry
1.22.4 - compatibility with 8.4
- add ZipArchive::ER_TRUNCATED_ZIP added in libzip 1.11
Show complete changelog