aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMáté Bartus <mate.bartus@gmail.com>2016-07-30 13:04:39 +0200
committerMáté Bartus <mate.bartus@gmail.com>2016-07-30 13:04:39 +0200
commit61a147546def2aaee24e723d5a78cb7afbc31331 (patch)
tree4184db0ae866aa67c8c1d429772fd35cfd11b4e9 /phpBB/phpbb
parented2c8b5bf77a46852d9b0f989df42a5997fa8562 (diff)
downloadforums-61a147546def2aaee24e723d5a78cb7afbc31331.tar
forums-61a147546def2aaee24e723d5a78cb7afbc31331.tar.gz
forums-61a147546def2aaee24e723d5a78cb7afbc31331.tar.bz2
forums-61a147546def2aaee24e723d5a78cb7afbc31331.tar.xz
forums-61a147546def2aaee24e723d5a78cb7afbc31331.zip
[ticket/14633] Check for XML extension support on install
PHPBB3-14633
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/install/module/requirements/task/check_server_environment.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/phpBB/phpbb/install/module/requirements/task/check_server_environment.php b/phpBB/phpbb/install/module/requirements/task/check_server_environment.php
index 62485a2097..29f9777747 100644
--- a/phpBB/phpbb/install/module/requirements/task/check_server_environment.php
+++ b/phpBB/phpbb/install/module/requirements/task/check_server_environment.php
@@ -71,6 +71,9 @@ class check_server_environment extends \phpbb\install\task_base
// Check for JSON support
$this->check_json();
+ // XML extension support check
+ $this->check_xml();
+
// Check for dbms support
$this->check_available_dbms();
@@ -155,6 +158,22 @@ class check_server_environment extends \phpbb\install\task_base
}
/**
+ * Checks whether or not the XML PHP extension is available (Required by the text formatter)
+ */
+ protected function check_xml()
+ {
+ if (class_exists('DOMDocument'))
+ {
+ $this->set_test_passed(true);
+ return;
+ }
+
+ $this->response_helper->add_error_message('PHP_XML_SUPPORT', 'PHP_XML_SUPPORT_EXPLAIN');
+
+ $this->set_test_passed(false);
+ }
+
+ /**
* Check if any supported DBMS is available
*/
protected function check_available_dbms()