From f99ee32d0304aa54730ef2199525eb6af390d4a7 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Wed, 1 Jan 2025 21:09:08 +0100 Subject: [PATCH] [ticket/17450] Remove check for json extension as this is part of default PHP PHPBB-17450 --- phpBB/language/en/install.php | 2 -- .../task/check_server_environment.php | 19 ------------------- 2 files changed, 21 deletions(-) diff --git a/phpBB/language/en/install.php b/phpBB/language/en/install.php index 5b8b38f4cc..50ec74f933 100644 --- a/phpBB/language/en/install.php +++ b/phpBB/language/en/install.php @@ -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.', '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.', - '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_EXPLAIN' => 'In order for phpBB to function correctly, the PHP mbstring extension needs to be available.', 'PHP_XML_SUPPORT' => 'PHP XML/DOM support', 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 be48cf1967..bb43ed4b2f 100644 --- a/phpBB/phpbb/install/module/requirements/task/check_server_environment.php +++ b/phpBB/phpbb/install/module/requirements/task/check_server_environment.php @@ -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 */