[wp-trac] [WordPress Trac] #46570: the is_serialized function couldn't tell e+n
WordPress Trac
noreply at wordpress.org
Wed Mar 20 08:05:03 UTC 2019
#46570: the is_serialized function couldn't tell e+n
--------------------------+-----------------------------
Reporter: hoythan | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
is_serialized
https://developer.wordpress.org/reference/functions/is_serialized/
{{{
echo unserialize('d:1.7976931348623157E+308;') //
d:1.7976931348623157E+308;
is_serialized('d:1.7976931348623157E+308;') // false
}}}
this could be wrong
{{{
516: return (bool) preg_match( "/^{$token}:[0-9.E-]+;$end/", $data );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46570>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list