@@ -368,6 +368,8 @@ PHP 8.0 UPGRADE NOTES
368
368
option), whereas formerly it was treated as directory name. This means that
369
369
if no trailing directory separator is given, the following character is
370
370
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).
371
373
372
374
- Zlib:
373
375
. gzgetss() has been removed.
@@ -421,6 +423,12 @@ PHP 8.0 UPGRADE NOTES
421
423
. Introduce DOMParentNode and DOMChildNode with new traversal and manipulation APIs
422
424
RFC: https://wiki.php.net/rfc/dom_living_standard_api
423
425
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
+
424
432
========================================
425
433
3. Changes in SAPI modules
426
434
========================================
@@ -437,6 +445,13 @@ PHP 8.0 UPGRADE NOTES
437
445
5. Changed Functions
438
446
========================================
439
447
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
+
440
455
========================================
441
456
6. New Functions
442
457
========================================
@@ -457,6 +472,13 @@ PHP 8.0 UPGRADE NOTES
457
472
IEEE 754 semantics. Division by zero is considered well-defined and
458
473
will return one of Inf, -Inf or NaN.
459
474
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
+
460
482
========================================
461
483
7. New Classes and Interfaces
462
484
========================================
0 commit comments