Re: [RFC] Phasing out Serializable
| From: | Björn Larsson | Date: | Mon, 07 Dec 2020 14:49:04 +0000 |
| Subject: | Re: [RFC] Phasing out Serializable | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-112455@lists.php.net to get a copy of this message | ||
Den 2020-12-07 kl. 15:11, skrev Nikita Popov:
Hi internals, Picking up a loose thread: https://wiki.php.net/rfc/custom_object_serialization introduced a replacement for Serializable in PHP 7.4, so it's time to think about deprecating and removing the old mechanism: https://wiki.php.net/rfc/phase_out_serializable This RFC follows a rather conversative approach. In PHP 8.1 there will be a deprecation warning if Serializable is implemented without also implementing __serialize() and __unserialize(). In PHP 9.0, support for Serializable is dropped internally, and only the interface retained. In PHP 10.0 the interface is dropped as well. Regards, NikitaGiven that 10.0 lies maybe ten years in the future if we have a similar timeline like for 7.0 to 8.0. Is it then realistic to have such a long-term planning? For me it feels a bit more prudent to remove it completely in 9.0. Otherwise +1! r//Björn L