summaryrefslogtreecommitdiffstats
path: root/Auth
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2008-02-19 23:43:26 +0000
committertailor <cygnus@janrain.com>2008-02-19 23:43:26 +0000
commitfe45ccf6ba76eec0974238198d33a555ed86406c (patch)
treed7a5558c404cb7673a7a39b83b17847273eaf7ab /Auth
parente9e76fa6f0f6a43acd4b1595dd29e79e006968d9 (diff)
downloadphp-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.php5
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);