note 57621 deleted from function.serialize by aharvey
| From: | aharvey@php.net | Date: | Tue, 06 Nov 2012 02:08:29 +0000 |
| Subject: | note 57621 deleted from function.serialize by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191760@lists.php.net to get a copy of this message | ||
Note Submitter: eggyknap at gmail dot com
----
[Editor's note: This has been fixed. Protected and private members were serialized with a
leading \0 (zero byte). Bug report here, http://bugs.php.net/29865 - aidan@php.net]
Be careful trying to serialize objects containing private or protected data members. It appears that
the serialization process includes characters in the result string to indicate the visibility of
each member, but the characters used to denote protected or private data are outside the normal
character set and can cause problems as you pass them through applications. I haven't found the
culprit in my particular case, so I can't say that this is a bug in PHP, but it certainly is
causing me some annoyance in my particular situation.