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" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]

>> You have to do all your own (.) answers all further question
>>
>> (snip)
>>
>> marcus 




-- 
Best regards,
 Marcus                            mailto:[EMAIL PROTECTED]

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to