mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/17450] Remove check for json extension as this is part of default PHP
PHPBB-17450
This commit is contained in:
@@ -68,9 +68,6 @@ class check_server_environment extends \phpbb\install\task_base
|
||||
// Check for PCRE support
|
||||
$this->check_pcre();
|
||||
|
||||
// Check for JSON support
|
||||
$this->check_json();
|
||||
|
||||
// Check for mbstring support
|
||||
$this->check_mbstring();
|
||||
|
||||
@@ -142,22 +139,6 @@ class check_server_environment extends \phpbb\install\task_base
|
||||
$this->set_test_passed(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether PHP's JSON extension is available or not
|
||||
*/
|
||||
protected function check_json()
|
||||
{
|
||||
if (@extension_loaded('json'))
|
||||
{
|
||||
$this->set_test_passed(true);
|
||||
return;
|
||||
}
|
||||
|
||||
$this->response_helper->add_error_message('PHP_JSON_SUPPORT', 'PHP_JSON_SUPPORT_EXPLAIN');
|
||||
|
||||
$this->set_test_passed(false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks whether PHP's mbstring extension is available or not
|
||||
*/
|
||||
|
Reference in New Issue
Block a user