[wp-trac] Re: [WordPress Trac] #7458: curl_setopt() throws errors in safe mode

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 4 07:07:16 GMT 2008


#7458: curl_setopt() throws errors in safe mode
---------------------------------+------------------------------------------
 Reporter:  Po0ky                |        Owner:  anonymous
     Type:  defect               |       Status:  new      
 Priority:  normal               |    Milestone:  2.7      
Component:  General              |      Version:  2.7      
 Severity:  normal               |   Resolution:           
 Keywords:  curl safe_mode http  |  
---------------------------------+------------------------------------------
Comment (by DD32):

 Of course theres no mention of this on the Curl page from what i can see..

 Thats not the first curl_setopt() call either, My only guess is its
 supposed to prevent the script from entering a endless loop? (because
 without CURLOPT_MAXREDIRS set, it'll follow as many as it wants -- which
 is done on the next line)

 Perhaps, It'd be best to just not use the curl class at all in safe mode?
 (Its the 2nd preference for GET requests at present, not used for post?)

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


More information about the wp-trac mailing list