[wp-trac] [WordPress Trac] #13458: Blogger Import prepends '>' to all content in PHP 5.3

WordPress Trac wp-trac at lists.automattic.com
Thu May 20 01:21:46 UTC 2010


#13458: Blogger Import prepends '>' to all content in PHP 5.3
--------------------------+-------------------------------------------------
 Reporter:  ampt          |       Owner:                   
     Type:  defect (bug)  |      Status:  new              
 Priority:  normal        |   Milestone:  Unassigned       
Component:  Import        |     Version:  3.0              
 Severity:  normal        |    Keywords:  has-patch,blogger
--------------------------+-------------------------------------------------
 The problem is in the AtomParser cdata function. Some calls to strpos are
 passed an array, which produces a PHP warning. This was fine prior to PHP
 5.3 as strpos returns FALSE. As of PHP 5.3 strpos returns NULL when the
 expected parameter is not a string.

 Attached is a patch that checks if strpos is passed an array, which
 prevents the warning and fixes the problem. There are also other undefined
 index and warning fixes that I found included in this patch.

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


More information about the wp-trac mailing list