On Thu, 24 Jan 2019 at 15:06, <naitsi...@e.mail.de> wrote:

>
> Sorry, what I wanted to ask was, what happens if `__serialize()` and
> `__SLEEP()` are implemented? xD
>

This is covered in the RFC:

> If a class has both __sleep() and __serialize(), then the latter will be
preferred.

In other words, if both are included, only __serialize() will be run by PHP
>= 7.4 (but __sleep() will be called by PHP <= 7.3, providing an upgrade
path).

Regards,
-- 
Rowan Collins
[IMSoP]

Reply via email to