[wp-trac] [WordPress Trac] #9663: is_serialized() should be renamed
to might_be_serialized();
WordPress Trac
wp-trac at lists.automattic.com
Tue Apr 28 03:08:10 GMT 2009
#9663: is_serialized() should be renamed to might_be_serialized();
--------------------------+-------------------------------------------------
Reporter: hakre | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 2.7.1
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
is_serialized() peeks into a string and 'tries' to find out if it is
serialied (= encoded) data.
infact it looks for data being a string and then checks if it
'''''might''''' be serialized data. for example, the string 'N;' is
interpreted as serialized data. well, this can actually be just a string.
next to this the function is not aware of handling utf-8. it does not
check wether or not the passed string is utf-8 encoded. then it uses
regular expressions that are not utf-8 aware (and which can not, because
WP is php 4.3 compatbile with has no such functionality with pcre).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9663>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list