[wp-trac] [WordPress Trac] #10659: wp_getPages failsif WP_DEBUG is set, and no page count parameter provided (was: wp_getPages fails on PHP5 with no page count parameter)

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 20 14:43:33 UTC 2009


#10659: wp_getPages failsif WP_DEBUG is set, and no page count parameter provided
--------------------------+-------------------------------------------------
 Reporter:  redsweater    |       Owner:  josephscott
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  Unassigned 
Component:  XML-RPC       |     Version:             
 Severity:  normal        |    Keywords:             
--------------------------+-------------------------------------------------

Comment(by redsweater):

 UPDATE: I think I was confused into thinking this is a PHP4 vs. PHP5
 issue, but instead I think it's a question of whether WP_DEBUG is set to
 true or not.

 When WP_DEBUG is true, sensitive array accesses in WordPress cause errors
 to be written, and thus foil the XML response.

 Should these sensitive array accesses be guarded (as the patch provides
 for in this case), so that XMLRPC operates correctly in WP_DEBUG mode?

 If so, I have another case and patch to submit.

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


More information about the wp-trac mailing list