note 60834 deleted from function.serialize by aharvey
| From: | aharvey@php.net | Date: | Tue, 06 Nov 2012 02:10:19 +0000 |
| Subject: | note 60834 deleted from function.serialize by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191769@lists.php.net to get a copy of this message | ||
Note Submitter: Embeded nulls with private vars
----
If you are serializing an object with private variables, beware. The serialize() function returns a
string with null (\x00) characters embedded within it, which you have to escape. Not great if
you're trying to save objects into a DB...