Re: [RFC] New custom object serialization mechanism

From: Date: Thu, 24 Jan 2019 15:11:58 +0000
Subject: Re: [RFC] New custom object serialization mechanism
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-103837@lists.php.net to get a copy of this message
On Thu, 24 Jan 2019 at 15:06, <naitsirch@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]

« previous php.internals (#103837) next »