1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

Merge branch '3.3.x'

This commit is contained in:
Marc Alexander
2020-09-19 10:50:13 +02:00
3 changed files with 23 additions and 1 deletions

View File

@@ -14,7 +14,7 @@
namespace phpbb\install\module\requirements\task;
/**
* Installer task that checks if the server meats phpBB requirements
* Installer task that checks if the server meets phpBB requirements
*/
class check_server_environment extends \phpbb\install\task_base
{
@@ -71,6 +71,9 @@ class check_server_environment extends \phpbb\install\task_base
// Check for JSON support
$this->check_json();
// Check for mbstring support
$this->check_mbstring();
// XML extension support check
$this->check_xml();
@@ -155,6 +158,22 @@ class check_server_environment extends \phpbb\install\task_base
$this->set_test_passed(false);
}
/**
* Checks whether PHP's mbstring extension is available or not
*/
protected function check_mbstring()
{
if (@extension_loaded('mbstring'))
{
$this->set_test_passed(true);
return;
}
$this->response_helper->add_error_message('PHP_MBSTRING_SUPPORT', 'PHP_MBSTRING_SUPPORT_EXPLAIN');
$this->set_test_passed(false);
}
/**
* Checks whether or not the XML PHP extension is available (Required by the text formatter)
*/