PHP 4.0 Bug #6348 Updated: serializing objects which use __sleep() can cripple the serialized return
| From: | stas@php.net | Date: | Mon, 11 Dec 2000 11:15:04 +0000 |
| Subject: | PHP 4.0 Bug #6348 Updated: serializing objects which use __sleep() can cripple the serialized return | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-40820@lists.php.net to get a copy of this message | ||
ID: 6348
Updated by: stas
Reported By: bachi@insign.ch
Old-Status: Open
Status: Feedback
Old-Bug Type: Misbehaving function
Bug Type: Class/Object related
Assigned To:
Comments:
Does it still happen in latest version? If so, please
provide short reproducing script for this behaviour.
Previous Comments:
---------------------------------------------------------------------------
[2000-08-25 06:12:22] bachi@insign.ch
If you serialize an object that uses __sleep() to define which properties should be serialized, the
serialized code will be crippled if a class property is defined (and returned by __sleep() to be
serialized), but not yet used in the object.
The serialized code includes then the property name, but with no value, so that the structure is
crippled and it is not possible to unserialize() it.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6348