Re: New handler for retrieving properties when object is serialized

From: Date: Thu, 25 Jul 2013 20:01:57 +0000
Subject: Re: New handler for retrieving properties when object is serialized
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On Thu, Jul 25, 2013 at 8:56 PM, Stas Malyshev <[email protected]>wrote:


> You can create those properties when processing __sleep. Nothing
> requires them to exist before __sleep was called.
>
>
The problem is that properties will exist after __sleep was called. :)
There are situations that you don't want them to exist (for example
DateTime).


Thread (22 messages)

« previous php.internals (#68310) next »