[wp-trac] [WordPress Trac] #9930: is_serialized() returns false on serialized doubles

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 22 14:04:17 UTC 2009


#9930: is_serialized() returns false on serialized doubles
---------------------------------+------------------------------------------
 Reporter:  vladimir_kolesnikov  |        Owner:  westi   
     Type:  defect (bug)         |       Status:  reopened
 Priority:  normal               |    Milestone:  3.0     
Component:  General              |      Version:          
 Severity:  minor                |   Resolution:          
 Keywords:  needs-patch          |  
---------------------------------+------------------------------------------

Comment(by Denis-de-Bernardy):

 the current is_serialized() also catches "some" garbage, btw.
 specifically, each of the following should ideally get rejected:

 {{{
 b:E;
 i:E;
 d:E;
 a:1::;
 }}}

 however, these seem to be very acceptable edge cases that we can live
 with: making the regexp more precise in order to validate the serialized
 data seems overkill given the number of times we call the function -- the
 application's efficiency would suffer.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9930#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list