[wp-trac] [WordPress Trac] #17129: Speed up is_serialized_string()

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 15 03:13:42 UTC 2011


#17129: Speed up is_serialized_string()
-------------------------+------------------------------
 Reporter:  markjaquith  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Performance  |     Version:
 Severity:  minor        |  Resolution:
 Keywords:               |
-------------------------+------------------------------

Comment (by greuben):

 the last elseif can be changed to
 {{{
 elseif ( '"' !== $data[4] || '"' !== $data[$length-2] )
     return false;
 }}}

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


More information about the wp-trac mailing list