From: Andrew Dolgov Date: Tue, 5 Apr 2011 12:25:07 +0000 (+0400) Subject: add sanity check for DOMDocument X-Git-Tag: 1.5.3~68 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=76a259c20a95274df93726a69d78de0180dc8def;p=tt-rss.git add sanity check for DOMDocument --- diff --git a/sanity_check.php b/sanity_check.php index 80796b0d..17937a3f 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -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 "Fatal Error: $err_msg\n"; exit;