AW: [PEAR-DEV] [RfC] XML_Serializer
| From: | Stephan Schmidt | Date: | Wed, 30 Jul 2003 09:18:09 +0000 |
| Subject: | AW: [PEAR-DEV] [RfC] XML_Serializer | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-18931@lists.php.net to get a copy of this message | ||
Hi,
> May I propose a minor 2 line addition to implement __sleep() feature?
> /******************************/
> /* Start of Proposed Addition */
> /******************************/
> // Check for Magic Function __sleep()
> if (method_exists($object,'__sleep')) {
> call_user_func(array($object, '__sleep'));
> }
> /******************************/
> /* End of Proposed Addition */
> /******************************/
I planned on adding this before the first release, together with a
__wakeup() method call in the Unserializer...
Stephan