Date: 07/31/01
- Next message: voudras <email protected>: "[PHP-DEV] Bug #12324 Updated: arg_separator.* broken"
- Previous message: andy <email protected>: "[PHP-DEV] Bug #8097 Updated: printf() and float data vs.setlocale()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: ricardo <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: http://bugs.php.net/?id=12497&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: voudras <email protected>: "[PHP-DEV] Bug #12324 Updated: arg_separator.* broken"
- Previous message: andy <email protected>: "[PHP-DEV] Bug #8097 Updated: printf() and float data vs.setlocale()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

