summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Services/Yadis/ParanoidHTTPFetcher.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Services/Yadis/ParanoidHTTPFetcher.php b/Services/Yadis/ParanoidHTTPFetcher.php
index 8831ecd..e14799f 100644
--- a/Services/Yadis/ParanoidHTTPFetcher.php
+++ b/Services/Yadis/ParanoidHTTPFetcher.php
@@ -65,7 +65,9 @@ class Services_Yadis_ParanoidHTTPFetcher extends Services_Yadis_HTTPFetcher {
$this->reset();
$c = curl_init();
- curl_setopt($c, CURLOPT_NOSIGNAL, true);
+ if (defined('CURLOPT_NOSIGNAL')) {
+ curl_setopt($c, CURLOPT_NOSIGNAL, true);
+ }
if (!$this->allowedURL($url)) {
trigger_error(sprintf("Fetching URL not allowed: %s", $url),