summaryrefslogtreecommitdiff
path: root/sanity_check.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-01 09:42:15 +0400
committerAndrew Dolgov <[email protected]>2011-04-01 09:42:15 +0400
commite2bcd11bb1f5427af08f97fe04afc63d73efce7e (patch)
tree159f75b34086ea5dd2c4d99dc687bbd7c84ab332 /sanity_check.php
parentb0f379dfff8738defba307341887ee5938625f55 (diff)
add a sanity check for CURL when using pubsubhubbub
Diffstat (limited to 'sanity_check.php')
-rw-r--r--sanity_check.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/sanity_check.php b/sanity_check.php
index 4cb74259d..80796b0d4 100644
--- a/sanity_check.php
+++ b/sanity_check.php
@@ -143,6 +143,10 @@
$err_msg = "php.ini: Safe mode is not supported. If you wish to continue, remove this test from sanity_check.php and proceeed at your own risk. Please note that your bug reports will not be accepted or reviewed.";
}
+ if (PUBSUBHUBBUB_HUB && !function_exists("curl_init")) {
+ $err_msg = "PUBSUBHUBBUB_HUB is defined, but CURL functions are not found. CURL is required for PubSubHubbub support.";
+ }
+
if ($err_msg) {
print "<b>Fatal Error</b>: $err_msg\n";
exit;