As of 5.0.1, when a user returns a property name in the array that is returned by __sleep(), var.c:php_var_serialize_class() doesn't properly find the protected or private members since the names in the table are mangled.
This patch, attempts to fix this problem by checking the mangled private and protected properties if the public property isnt found. It also will issue an E_NOTICE if the user returns an item in the array where no property was found. bug: http://bugs.php.net/26737 patch: http://zirzow.dyndns.org/patches/bugs/26737.patch example: http://zirzow.dyndns.org/html/php/php5/sleep.php There also exists a tests/classes/bug26737.phpt which comes back differently but corret, which I'll fix if this patch is accepted. Thanks! Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php