Commit 3c6a57189e2 for php.net
commit 3c6a57189e299b139bded2ff12dd25877e1bf7f8
Author: Ilia Alshanetsky <ilia@ilia.ws>
Date: Thu Sep 3 08:36:53 2026 -0400
[skip ci] Note the ZipArchive serialization BC break in UPGRADING
adc5f8da339 (GH-21708) made serialize() and unserialize() throw for
ZipArchive instances, which is user-visible and belongs in the BC
section rather than only in NEWS.
diff --git a/UPGRADING b/UPGRADING
index 42ee8f4228d..596db8fb426 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -319,6 +319,9 @@ PHP 8.6 UPGRADE NOTES
when the "remove_all_path" option is not of type bool, or when the
"comp_method", "comp_flags", or "enc_method" options are not of type int
(numeric strings are coerced), instead of emitting a warning.
+ . Serializing or unserializing a ZipArchive now throws an Exception. A
+ subclass can override __serialize() and __unserialize() to round-trip
+ through ZipArchive::closeString() and ZipArchive::openString().
- Zlib:
. deflate_init() now raises a TypeError when the value for option "level",