Re: New handler for retrieving properties when object is serialized
| From: | Jakub Zelenka | 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 internals+get-68310@lists.php.net to get a copy of this message | ||
On Thu, Jul 25, 2013 at 8:56 PM, Stas Malyshev <smalyshev@sugarcrm.com>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).