[wp-trac] [WordPress Trac] #9930: is_serialized() returns false on serialized doubles
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 22 13:08:43 UTC 2009
#9930: is_serialized() returns false on serialized doubles
---------------------------------+------------------------------------------
Reporter: vladimir_kolesnikov | Owner: westi
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.0
Component: General | Version:
Severity: minor | Keywords: has-patch
---------------------------------+------------------------------------------
Changes (by westi):
* keywords: needs-patch needs-unit-tests => has-patch
Comment:
Replying to [comment:10 dd32]:
> change that to:
> {{{
> return is_string($data) &&
preg_match('/^(N;)|([aOs]:[0-9]+:.*[;}])|([bid]:[0-9.E+-]+;)$/s', $data);
> }}}
>
> ie. Add the s modifier and it passes this test case for me.
>
Looks good to me to.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9930#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list