[wp-trac] [WordPress Trac] #11499: curl_setopt() In Feed Options?

WordPress Trac wp-trac at lists.automattic.com
Mon Dec 21 13:44:40 UTC 2009


#11499: curl_setopt() In Feed Options?
----------------------------+-----------------------------------------------
 Reporter:  markmcwilliams  |       Owner:                   
     Type:  defect (bug)    |      Status:  new              
 Priority:  normal          |   Milestone:  2.9.1            
Component:  Feeds           |     Version:  2.9              
 Severity:  normal          |    Keywords:  reporter-feedback
----------------------------+-----------------------------------------------

Comment(by westi):

 The constant that the bitmask test is done against is defined as follows:

 {{{#define CURLPROTO_FILE   (1<<10)}}}

 Therefore when we try and set a 10 second timeout (the default for feeds)
 using millisecond resolution you end up with a test of (10000 & 1024)
 which evaluates to true.

 Thereby triggering this error.

 Maybe we should still try and use the _MS timeouts for sub one second
 timeouts which will be safe from this PHP bug.

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


More information about the wp-trac mailing list