note 35047 added to function.unserialize
| From: | filefrog at lNuOgSoPpA dot Morg | Date: | Sun, 17 Aug 2003 23:14:45 +0000 |
| Subject: | note 35047 added to function.unserialize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-54545@lists.php.net to get a copy of this message | ||
Serialization is intended for complicated objects like user-defined classes and resource identifiers
(including database connections and file handles); there is no need to serialize the built-in
datatypes like string or bool.
So saltymeat's warning about unserializing a boolean shouldn't be that necessary, since a
boolean can be bassed as a 1 or a 0, avoiding the need for serialization.
----
Manual Page -- http://www.php.net/manual/en/function.unserialize.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35047
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35047&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35047&report=yes