[wp-trac] [WordPress Trac] #8577: Attempts to use curl cause warnings on some hosts

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 11 15:19:42 GMT 2008


#8577: Attempts to use curl cause warnings on some hosts
---------------------+------------------------------------------------------
 Reporter:  Otto42   |       Owner:  anonymous
     Type:  defect   |      Status:  new      
 Priority:  normal   |   Milestone:  2.7.1    
Component:  General  |     Version:  2.7      
 Severity:  normal   |    Keywords:           
---------------------+------------------------------------------------------
 Some 2.7 users are getting these messages:

  Warning: curl_exec() has been disabled for security reasons in
 /home/nicetec/public_html/wp-includes/http.php on line 1022
  Warning: curl_exec() has been disabled for security reasons in
 /home/nicetec/public_html/wp-includes/http.php on line 1027
  Warning: Cannot modify header information - headers already sent by
 (output started at /home/nicetec/public_html/wp-includes/http.php:1022) in
 /home/nicetec/public_html/wp-includes/pluggable.php on line 850

 Apparently, when a paranoid host decides to disable curl, even attempting
 to use it can cause a warning.

 However, the real problem is that the only check for curl capability is
 "function_exists('curl_init')". While function_exists will return false
 for disabled functions, it's not checking all of them. Although why a host
 would disable curl_exec and not curl_init is beyond me, I admit.

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


More information about the wp-trac mailing list