This should probably come without any surprise, but the changes can only be undone before close() is called...
PHP - Manual: ZipArchive::unchangeAll
2024-12-22
(PHP 5 >= 5.2.0, PHP 7, PHP 8, PECL zip >= 1.1.0)
ZipArchive::unchangeAll — Undo all changes done in the archive
Undo all changes done in the archive.
此函数没有参数。
成功时返回 true
, 或者在失败时返回 false
。
This should probably come without any surprise, but the changes can only be undone before close() is called...
官方地址:https://www.php.net/manual/en/ziparchive.unchangeall.php