#26118 closed defect (bug) (duplicate)
is_serialized() doesn't account for objects using PHP Serializable interface
| Reported by: | nerrad | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 3.7 |
| Severity: | major | Keywords: | has-patch dev-feedback |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
fix for is_serialized() to use "C" token