diff options
author | Remi Collet <remi@php.net> | 2020-03-05 14:03:20 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2020-03-05 14:03:20 +0100 |
commit | e786e9c83c56613c861f431451526a6a27d5dc7c (patch) | |
tree | 62f90491659d03e21b441753ccc01310f9eb756f | |
parent | 541eeace598cc1c87f686573da8dcbc6a6b5efc4 (diff) | |
download | php-git-e786e9c83c56613c861f431451526a6a27d5dc7c.tar.gz |
upgrade information about changs in Zip
-rw-r--r-- | UPGRADING | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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 ======================================== |