PHP 4.0 Bug #6348: serializing objects which use __sleep() can cripple the serialized return
| From: | bachi at insign dot ch | Date: | Fri, 25 Aug 2000 10:12:22 +0000 |
| Subject: | PHP 4.0 Bug #6348: serializing objects which use __sleep() can cripple the serialized return | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-30620@lists.php.net to get a copy of this message | ||
From: bachi@insign.ch
Operating system: Linux
PHP version: 4.0.1pl2
PHP Bug Type: Misbehaving function
Bug description: serializing objects which use __sleep() can cripple the serialized return
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.