#26118 closed defect (bug) (duplicate)
is_serialized() doesn't account for objects using PHP Serializable interface
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | major | Version: | 3.7 |
Component: | General | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
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
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
fix for is_serialized() to use "C" token