From:             [EMAIL PROTECTED]
Operating system: Any
PHP version:      4.0.6
PHP Bug Type:     Class/Object related
Bug description:  Problem with serialize/unserialize

$myVar = "Some Text";
$myVarCopy = $myVar;
$myVar = unserialize(serialize($myVarCopy));
echo "MD5 Of myVar: ". md5(serialize($myVar))."<BR>";
echo "MD5 Of myVarCopy: ". md5(serialize($myVarCopy))."<BR>";

This is okay, but if $myVar is a complex Object, for instance an Object
which has variables that point to other objects (and so on), the
serialization fails badly. The class is restored appropriately (knows itīs
type etc) but there is data missing...

Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to