Skip to content

Commit a5f136b

Browse files
committed
bump zp to 1.18.1 + doc
1 parent 3b22e10 commit a5f136b

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

NEWS

+2
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,7 @@ PHP NEWS
153153
is closed. (Remi)
154154
. Fixed bug #50678 (files extracted by ZipArchive class lost their
155155
original modified time). (Remi)
156+
. Implemented FR #77960 (add compression / encryption options for
157+
ZipArchive::addGlob and ZipArchive::addPattern). (Remi)
156158

157159
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>

UPGRADING

+8-3
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ PHP 8.0 UPGRADE NOTES
450450
RFC: https://wiki.php.net/rfc/dom_living_standard_api
451451

452452
- Zip:
453-
. Extension updated to version 1.18
453+
. Extension updated to version 1.18.1
454454
. New ZipArchive::lastId property to get index value of last added entry.
455455
. Error can be checked after an archive is closed using ZipArchive::status,
456456
ZipArchive::statusSys properties or ZipArchive::getStatusString() method.
@@ -475,8 +475,13 @@ PHP 8.0 UPGRADE NOTES
475475
========================================
476476

477477
- Zip
478-
. ZipArchive::addGlob and ZipArchive::addPattern methods accept a "flags"
479-
value in the "options" array argument.
478+
. ZipArchive::addGlob and ZipArchive::addPattern methods accept more
479+
values in the "options" array argument:
480+
. flags
481+
. comp_method
482+
. comp_flags
483+
. env_method
484+
. enc_pasword
480485
. ZipArchive::addEmptyDir, ZipArchive::addFile and aZipArchive::addFromString
481486
methods have a new "flags" argument. This allow to manage name encoding
482487
(ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE)

ext/zip/php_zip.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extern zend_module_entry zip_module_entry;
3131
#define ZIP_OVERWRITE ZIP_TRUNCATE
3232
#endif
3333

34-
#define PHP_ZIP_VERSION "1.18.0"
34+
#define PHP_ZIP_VERSION "1.18.1"
3535

3636
#define ZIP_OPENBASEDIR_CHECKPATH(filename) php_check_open_basedir(filename)
3737

0 commit comments

Comments
 (0)