Re: New handler for retrieving properties when object is serialized
| From: | Stas Malyshev | Date: | Fri, 26 Jul 2013 17:15:48 +0000 |
| Subject: | Re: New handler for retrieving properties when object is serialized | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-68324@lists.php.net to get a copy of this message | ||
Hi!
> This is a bit painful to generate and then parse (unserialize) string if
> you do it in C... Especially if you need only add few properties that
> will contain data for serialization. In that case Serailizable is a bit
> overkill...
>
> And for my use case (DateTime serialization) it would be BC as well.
> Different format (Serializable always generate Custom string).
I think given that we already have not one, but two interfaces for
dealing with serialization (__sleep and Serializable), adding a third
one that does essentially the same but with a little difference would be
really too much.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227