mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge pull request #6767 from marc1706/ticket/17450
[ticket/17450] Remove check for json extension as this is part of default PHP
This commit is contained in:
commit
4d61c52a46
2 changed files with 0 additions and 21 deletions
|
@ -110,8 +110,6 @@ $lang = array_merge($lang, array(
|
||||||
'PHP_GETIMAGESIZE_SUPPORT_EXPLAIN' => 'In order for phpBB to function correctly, the getimagesize function needs to be available.',
|
'PHP_GETIMAGESIZE_SUPPORT_EXPLAIN' => 'In order for phpBB to function correctly, the getimagesize function needs to be available.',
|
||||||
'PCRE_UTF_SUPPORT' => 'PCRE UTF-8 support',
|
'PCRE_UTF_SUPPORT' => 'PCRE UTF-8 support',
|
||||||
'PCRE_UTF_SUPPORT_EXPLAIN' => 'phpBB will not run if your PHP installation is not compiled with UTF-8 support in the PCRE extension.',
|
'PCRE_UTF_SUPPORT_EXPLAIN' => 'phpBB will not run if your PHP installation is not compiled with UTF-8 support in the PCRE extension.',
|
||||||
'PHP_JSON_SUPPORT' => 'PHP JSON support',
|
|
||||||
'PHP_JSON_SUPPORT_EXPLAIN' => 'In order for phpBB to function correctly, the PHP JSON extension needs to be available.',
|
|
||||||
'PHP_MBSTRING_SUPPORT' => 'PHP mbstring support',
|
'PHP_MBSTRING_SUPPORT' => 'PHP mbstring support',
|
||||||
'PHP_MBSTRING_SUPPORT_EXPLAIN' => 'In order for phpBB to function correctly, the PHP mbstring extension needs to be available.',
|
'PHP_MBSTRING_SUPPORT_EXPLAIN' => 'In order for phpBB to function correctly, the PHP mbstring extension needs to be available.',
|
||||||
'PHP_XML_SUPPORT' => 'PHP XML/DOM support',
|
'PHP_XML_SUPPORT' => 'PHP XML/DOM support',
|
||||||
|
|
|
@ -68,9 +68,6 @@ class check_server_environment extends \phpbb\install\task_base
|
||||||
// Check for PCRE support
|
// Check for PCRE support
|
||||||
$this->check_pcre();
|
$this->check_pcre();
|
||||||
|
|
||||||
// Check for JSON support
|
|
||||||
$this->check_json();
|
|
||||||
|
|
||||||
// Check for mbstring support
|
// Check for mbstring support
|
||||||
$this->check_mbstring();
|
$this->check_mbstring();
|
||||||
|
|
||||||
|
@ -142,22 +139,6 @@ class check_server_environment extends \phpbb\install\task_base
|
||||||
$this->set_test_passed(false);
|
$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
|
* Checks whether PHP's mbstring extension is available or not
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue