Re: [RFC] New custom object serialization mechanism
| From: | Marco Pivetta | Date: | Thu, 24 Jan 2019 14:09:17 +0000 |
| Subject: | Re: [RFC] New custom object serialization mechanism | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-103828@lists.php.net to get a copy of this message | ||
Not really fussed about having another implicit interface for serialization
(via magic methods).
Wouldn't a new interface make this clear, explicit, and make the
deprecation path easier (together with the migration)?
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On Thu, Jan 24, 2019 at 1:27 PM Nikita Popov <nikita.ppv@gmail.com> wrote:
> Hi internals,
>
> I'd like to propose a new custom object serialization mechanism intended to
> replace the broken Serializable interface:
>
> https://wiki.php.net/rfc/custom_object_serialization
>
> This was already previously discussed in
> https://externals.io/message/98834,
> this just brings it into RFC form. The latest motivation for this is
> https://bugs.php.net/bug.php?id=77302, a compatibility issue in
> 7.3
> affecting Symfony, caused by Serializable. We can't fix Serializable, but
> we can at least make sure that a working alternative exists.
>
> Regards,
> Nikita
>