[wp-trac] [WordPress Trac] #7611: Use strpos() instead of strstr()

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 27 08:45:22 GMT 2008


#7611: Use strpos() instead of strstr()
--------------------------+-------------------------------------------------
 Reporter:  johnbillion   |       Owner:  anonymous
     Type:  enhancement   |      Status:  new      
 Priority:  low           |   Milestone:           
Component:  Optimization  |     Version:  2.6.1    
 Severity:  minor         |    Keywords:           
--------------------------+-------------------------------------------------
 Following on from #7610, there are two places where strpos() could be used
 instead of strstr(). [http://uk3.php.net/manual/en/function.strstr.php
 According to the PHP Manual], strpos() is faster and less memory intensive
 than strstr().

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7611>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list