note 104324 deleted from function.unserialize by aharvey
| From: | aharvey@php.net | Date: | Tue, 06 Nov 2012 01:38:39 +0000 |
| Subject: | note 104324 deleted from function.unserialize by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191728@lists.php.net to get a copy of this message | ||
Note Submitter: martijntje at martijnotto dot nl
----
If you are storing serialized objects that persists between pageviews and you are using an
autoloader, things may fall apart.
By default, when unserializing PHP will not call the autoloader when it discovers an unknown class.
This can be fixed easily with the following directive in php.ini
unserialize_callback_func = 'spl_autoload_call'