[wp-trac] Re: [WordPress Trac] #9930: is_serialized() returns false
on serialized doubles
WordPress Trac
wp-trac at lists.automattic.com
Mon May 25 08:46:22 GMT 2009
#9930: is_serialized() returns false on serialized doubles
---------------------------------+------------------------------------------
Reporter: vladimir_kolesnikov | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: General | Version:
Severity: minor | Keywords: has-patch
---------------------------------+------------------------------------------
Comment(by Denis-de-Bernardy):
yaya, it's just that, the patch seems to change the is_serialized_string()
function, rather than is_serialized() (or maybe_is_serialized(), or
whatever it's called).
based on the phpdoc of the function you changed, this is expected:
{{{
print var_export(is_serialized_string(serialize("a\nb"))) . "\n"; // true
print var_export(is_serialized_string(serialize(-25))) . "\n"; // false
print var_export(is_serialized_string(serialize(25))) . "\n"; // false
print var_export(is_serialized_string(serialize(false))) . "\n"; // false
print var_export(is_serialized_string(serialize(null))) . "\n"; // false
print var_export(is_serialized_string(serialize(array()))) . "\n"; //
false
print var_export(is_serialized_string(serialize(1.1))) . "\n"; // false
print var_export(is_serialized_string(serialize(2.1E+200))) . "\n"; //
false
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9930#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list