mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/14633] Check for XML extension support on install
PHPBB3-14633
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -154,6 +157,22 @@ class check_server_environment extends \phpbb\install\task_base
|
||||
$this->set_test_passed(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user