summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemi Collet <remi@php.net>2020-03-05 14:03:20 +0100
committerRemi Collet <remi@php.net>2020-03-05 14:03:20 +0100
commite786e9c83c56613c861f431451526a6a27d5dc7c (patch)
tree62f90491659d03e21b441753ccc01310f9eb756f
parent541eeace598cc1c87f686573da8dcbc6a6b5efc4 (diff)
downloadphp-git-e786e9c83c56613c861f431451526a6a27d5dc7c.tar.gz
upgrade information about changs in Zip
-rw-r--r--UPGRADING22
1 files changed, 22 insertions, 0 deletions
diff --git a/UPGRADING b/UPGRADING
index fcfb715622..f99344ac0c 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -368,6 +368,8 @@ PHP 8.0 UPGRADE NOTES
option), whereas formerly it was treated as directory name. This means that
if no trailing directory separator is given, the following character is
no longer stripped from the filename.
+ . ZipArchive::OPSYS_Z_CPM have been removed, should use ZipArchive::OPSYS_CPM
+ (this name was a typo).
- Zlib:
. gzgetss() has been removed.
@@ -421,6 +423,12 @@ PHP 8.0 UPGRADE NOTES
. Introduce DOMParentNode and DOMChildNode with new traversal and manipulation APIs
RFC: https://wiki.php.net/rfc/dom_living_standard_api
+- Zip:
+ . Extension updated to version 1.18
+ . New ZipArchive::lastId property to get index value of last added entry.
+ . Error can be checked after an archive is closed using ZipArchive::status,
+ ZipArchive::statusSys properties or ZipArchive::getStatusString() method.
+
========================================
3. Changes in SAPI modules
========================================
@@ -437,6 +445,13 @@ PHP 8.0 UPGRADE NOTES
5. Changed Functions
========================================
+- Zip
+ . ZipArchive::addGlob and ZipArchive::addPattern methods accept a "flags"
+ value in the "options" array argument.
+ . ZipArchive::addEmptyDir, ZipArchive::addFile and aZipArchive::addFromString
+ methods have a new "flags" argument. This allow to manage name encoding
+ (ZipArchive::FL_ENC_*) and entry replacement (ZipArchive::FL_OVERWRITE)
+
========================================
6. New Functions
========================================
@@ -457,6 +472,13 @@ PHP 8.0 UPGRADE NOTES
IEEE 754 semantics. Division by zero is considered well-defined and
will return one of Inf, -Inf or NaN.
+- Zip:
+ . ZipArchive::setMtimeName and ZipArchive::setMtimeIndex to set the
+ modification time of an entry.
+ . ZipArchive::setProgressCallback to provide updates during archive close.
+ . ZipArchive::setCancelCallback to allow cancellation during archive close.
+ . ZipArchive::replaceFile to replace an entry content.
+
========================================
7. New Classes and Interfaces
========================================