Re: Serialization question

From: Date: Sun, 20 Mar 2005 20:18:42 +0000
Subject: Re: Serialization question
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-15513@lists.php.net to get a copy of this message
Hello l0t3k, Monday, March 21, 2005, 12:14:03 PM, you wrote: > Marcus, > i just read through var.c (specifically php_var_serialize_intern) and it > seems as if the properties hash is handled correctly if the user specifies > __sleep and __wakeup. > IOW, the custom callback is called, then _sleep is called to determine how > to further handle properties. Thanks for checking that, i didn't new and imho it is absolutley wrong. Instead the user should call that funcs his own in an overloaded class of the c code should enforce calling it otherwise. I think so becuase the whole idea of being able to overload serializing at c level is that there might be classes that do not have standard properties implemented and hence a call to __sleep/__wakeup does not make sense. regards marcus > "Marcus Boerger" <mail@marcus-boerger.de> wrote in message > news:1245669636.20050320203441@marcus-boerger.de... >> You have to do all your own (.) answers all further question >> >> (snip) >> >> marcus -- Best regards, Marcus mailto:mail@marcus-boerger.de

« previous php.internals (#15513) next »