[wp-trac] [WordPress Trac] #9930: is_serialized() returns false on
serialized doubles
WordPress Trac
wp-trac at lists.automattic.com
Sun May 24 17:23:43 GMT 2009
#9930: is_serialized() returns false on serialized doubles
---------------------------------+------------------------------------------
Reporter: vladimir_kolesnikov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone:
Component: General | Version:
Severity: minor | Keywords:
---------------------------------+------------------------------------------
Test case:
{{{
<?php
require_once('wp-load.php');
print var_export(is_serialized(serialize(1.2E+150)));
?>
}}}
Expected: true
Got: false
serialize(1.2E+150) returns something like
'd:1.200000000000000013344651621705194036153934411236609269391465806550823148718924258603522328009361549E+150;',
the plus sign after 'E' is not taken into account by the regexp
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9930>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list