PHP 4.0 Bug #6348 Updated: serializing objects which use __sleep() can cripple the serialized return

From: Date: Mon, 11 Dec 2000 12:59:21 +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-40831@lists.php.net to get a copy of this message
ID: 6348 Updated by: thies Reported By: bachi@insign.ch Old-Status: Feedback Status: Closed Bug Type: Class/Object related Assigned To: Comments: fixed in CVS & upcoming 4.0.4 Previous Comments: --------------------------------------------------------------------------- [2000-12-11 06:15:04] stas@php.net Does it still happen in latest version? If so, please provide short reproducing script for this behaviour. --------------------------------------------------------------------------- [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

« previous php.dev (#40831) next »