From 76a259c20a95274df93726a69d78de0180dc8def Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 5 Apr 2011 16:25:07 +0400 Subject: [PATCH] add sanity check for DOMDocument --- sanity_check.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.39.5