Skip to content

Commit e786e9c

Browse files
committed
upgrade information about changs in Zip
1 parent 541eeac commit e786e9c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

UPGRADING

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ PHP 8.0 UPGRADE NOTES
368368
option), whereas formerly it was treated as directory name. This means that
369369
if no trailing directory separator is given, the following character is
370370
no longer stripped from the filename.
371+
. ZipArchive::OPSYS_Z_CPM have been removed, should use ZipArchive::OPSYS_CPM
372+
(this name was a typo).
371373

372374
- Zlib:
373375
. gzgetss() has been removed.
@@ -421,6 +423,12 @@ PHP 8.0 UPGRADE NOTES
421423
. Introduce DOMParentNode and DOMChildNode with new traversal and manipulation APIs
422424
RFC: https://wiki.php.net/rfc/dom_living_standard_api
423425

426+
- Zip:
427+
. Extension updated to version 1.18
428+
. New ZipArchive::lastId property to get index value of last added entry.
429+
. Error can be checked after an archive is closed using ZipArchive::status,
430+
ZipArchive::statusSys properties or ZipArchive::getStatusString() method.
431+
424432
========================================
425433
3. Changes in SAPI modules
426434
========================================
@@ -437,6 +445,13 @@ PHP 8.0 UPGRADE NOTES
437445
5. Changed Functions
438446
========================================
439447

448+
- Zip
449+
. ZipArchive::addGlob and ZipArchive::addPattern methods accept a "flags"
450+
value in the "options" array argument.
451+
. ZipArchive::addEmptyDir, ZipArchive::addFile and aZipArchive::addFromString
452+
methods have a new "flags" argument. This allow to manage name encoding
453+
(ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE)
454+
440455
========================================
441456
6. New Functions
442457
========================================
@@ -457,6 +472,13 @@ PHP 8.0 UPGRADE NOTES
457472
IEEE 754 semantics. Division by zero is considered well-defined and
458473
will return one of Inf, -Inf or NaN.
459474

475+
- Zip:
476+
. ZipArchive::setMtimeName and ZipArchive::setMtimeIndex to set the
477+
modification time of an entry.
478+
. ZipArchive::setProgressCallback to provide updates during archive close.
479+
. ZipArchive::setCancelCallback to allow cancellation during archive close.
480+
. ZipArchive::replaceFile to replace an entry content.
481+
460482
========================================
461483
7. New Classes and Interfaces
462484
========================================

0 commit comments

Comments
 (0)