note 108060 deleted from function.unserialize by aharvey

From: Date: Tue, 06 Nov 2012 01:39:36 +0000
Subject: note 108060 deleted from function.unserialize by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191730@lists.php.net to get a copy of this message
Note Submitter: php at deltatech-v2 dot de ---- I used Google-Oauth for authentication, got a "Person-Object" back and saved this in the database (serialized). After unserializing, i got the PHP_INCOMPLETE-Class, because the Person-Class was not included. To avoid this i converted the original-class to a PHP stdClass via Json: <?php // Before: $me_data == Person() $me_data = json_encode($me_data); $me_data = json_decode($me_data); // After: $me_data == stdClass() ?>

« previous php.notes (#191730) next »