Re: New handler for retrieving properties when object is serialized

From: Date: Fri, 26 Jul 2013 09:38:45 +0000
Subject: Re: New handler for retrieving properties when object is serialized
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-68314@lists.php.net to get a copy of this message
> > > What about using our Serializable interface? - That was invented to > serialize internal objects with arbitrary internal data. > > 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). Jakub

« previous php.internals (#68314) next »