diff options
author | tailor <cygnus@janrain.com> | 2008-02-19 23:43:26 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2008-02-19 23:43:26 +0000 |
commit | fe45ccf6ba76eec0974238198d33a555ed86406c (patch) | |
tree | d7a5558c404cb7673a7a39b83b17847273eaf7ab /Auth | |
parent | e9e76fa6f0f6a43acd4b1595dd29e79e006968d9 (diff) | |
download | php-openid-fe45ccf6ba76eec0974238198d33a555ed86406c.zip php-openid-fe45ccf6ba76eec0974238198d33a555ed86406c.tar.gz php-openid-fe45ccf6ba76eec0974238198d33a555ed86406c.tar.bz2 |
[project @ Add conditional check for CURLOPT_NOSIGNAL (thanks: http://ols2000.myopenid.com/)]
Diffstat (limited to 'Auth')
-rw-r--r-- | Auth/Yadis/ParanoidHTTPFetcher.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Auth/Yadis/ParanoidHTTPFetcher.php b/Auth/Yadis/ParanoidHTTPFetcher.php index ab111f8..5fa30ef 100644 --- a/Auth/Yadis/ParanoidHTTPFetcher.php +++ b/Auth/Yadis/ParanoidHTTPFetcher.php @@ -154,7 +154,10 @@ class Auth_Yadis_ParanoidHTTPFetcher extends Auth_Yadis_HTTPFetcher { $c = curl_init(); - curl_setopt($c, CURLOPT_NOSIGNAL, true); + if (defined('CURLOPT_NOSIGNAL')) { + curl_setopt($c, CURLOPT_NOSIGNAL, true); + } + curl_setopt($c, CURLOPT_POST, true); curl_setopt($c, CURLOPT_POSTFIELDS, $body); curl_setopt($c, CURLOPT_TIMEOUT, $this->timeout); |