Re: New handler for retrieving properties when object is serialized

From: Date: Fri, 26 Jul 2013 10:04:29 +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 [email protected] to get a copy of this message
On Fri, 2013-07-26 at 10:38 +0100, Jakub Zelenka wrote:


> 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...

So rather change the engine, which affects way more things and add yet
another serialisation hook making it even more confusing what to use?
> 
> 
> And for my use case (DateTime serialization) it would be BC as well.
> Different format (Serializable always generate Custom string).
> 
You're solution also depends on an API break and also changes the way
the objects behave during serialization/unserialization.

Doesn't convince me.

johannes





Thread (22 messages)

« previous php.internals (#68317) next »