. ZipArchive::status and ZipArchive::statusSys properties and
ZipArchive::getStatusString() method stay valid after the archive
is closed. (Remi)
+ . Fixed bug #50678 (files extracted by ZipArchive class lost their
+ original modified time). (Remi)
<<< NOTE: Insert NEWS from last stable release here prior to actual release! >>>
. 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)
+ . ZipArchive::extractTo now restore file modification time.
========================================
6. New Functions
php_stream_write(stream, b, n);
}
+ if (stream->wrapper->wops->stream_metadata) {
+ struct utimbuf ut;
+
+ ut.modtime = ut.actime = sb.mtime;
+ stream->wrapper->wops->stream_metadata(stream->wrapper, fullpath, PHP_STREAM_META_TOUCH, &ut, NULL);
+ }
+
php_stream_close(stream);
n = zip_fclose(zf);