add sanity check for DOMDocument

This commit is contained in:
Andrew Dolgov 2011-04-05 16:25:07 +04:00
parent 592f033943
commit 76a259c20a
1 changed files with 4 additions and 0 deletions

View File

@ -147,6 +147,10 @@
$err_msg = "PUBSUBHUBBUB_HUB is defined, but CURL functions are not found. CURL is required for PubSubHubbub support.";
}
if (!class_exists("DOMDocument")) {
$err_msg = "PHP: DOMDocument extension not found.";
}
if ($err_msg) {
print "<b>Fatal Error</b>: $err_msg\n";
exit;