[wp-trac] [WordPress Trac] #26118: is_serialized() doesn't account for objects using PHP Serializable interface

WordPress Trac noreply at wordpress.org
Tue Nov 19 20:28:03 UTC 2013


#26118: is_serialized() doesn't account for objects using PHP Serializable
interface
--------------------------+------------------------------------
 Reporter:  nerrad        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  major         |   Keywords:  has-patch dev-feedback
--------------------------+------------------------------------
 About Serializable -> http://us2.php.net/serializable

 The problem: Serializable uses the token "C" at the beginning of the
 serialized string.  This doesn't get recognized by `Is_serialized()` as a
 serialized string and thus doesn't get unserialized when maybe_unserialize
 is used.

 The fix:  Add the "C" token to the switch check in is_serialized().

 See attached patch

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26118>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list