aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2025-02-24 18:09:10 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2025-02-24 18:09:10 +0100
commitd5406c998e97a1437e6620030620633c658e55d4 (patch)
tree4a1c66999569709f4e45613089b63a90b529b3fa
parent03ba09241926801733113d8225d64909712e2e6f (diff)
downloadnextcloud-server-d5406c998e97a1437e6620030620633c658e55d4.tar.gz
nextcloud-server-d5406c998e97a1437e6620030620633c658e55d4.zip
fix: Remove check for PHP modules in checkServer which are already tested by setupchecks
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--lib/private/legacy/OC_Util.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php
index f82082d3d12..291d7d77823 100644
--- a/lib/private/legacy/OC_Util.php
+++ b/lib/private/legacy/OC_Util.php
@@ -477,40 +477,17 @@ class OC_Util {
// If the dependency is not found the missing module name is shown to the EndUser
// When adding new checks always verify that they pass on CI as well
$dependencies = [
- 'classes' => [
- 'ZipArchive' => 'zip',
- 'DOMDocument' => 'dom',
- 'XMLWriter' => 'XMLWriter',
- 'XMLReader' => 'XMLReader',
- ],
'functions' => [
- 'xml_parser_create' => 'libxml',
- 'mb_strcut' => 'mbstring',
- 'ctype_digit' => 'ctype',
- 'json_encode' => 'JSON',
- 'gd_info' => 'GD',
- 'gzencode' => 'zlib',
'simplexml_load_string' => 'SimpleXML',
'hash' => 'HASH Message Digest Framework',
- 'curl_init' => 'cURL',
- 'openssl_verify' => 'OpenSSL',
],
'defined' => [
'PDO::ATTR_DRIVER_NAME' => 'PDO'
],
- 'ini' => [
- 'default_charset' => 'UTF-8',
- ],
];
$missingDependencies = [];
- $invalidIniSettings = [];
$iniWrapper = \OC::$server->get(IniGetWrapper::class);
- foreach ($dependencies['classes'] as $class => $module) {
- if (!class_exists($class)) {
- $missingDependencies[] = $module;
- }
- }
foreach ($dependencies['functions'] as $function => $module) {
if (!function_exists($function)) {
$missingDependencies[] = $module;
@@ -521,11 +498,6 @@ class OC_Util {
$missingDependencies[] = $module;
}
}
- foreach ($dependencies['ini'] as $setting => $expected) {
- if (strtolower($iniWrapper->getString($setting)) !== strtolower($expected)) {
- $invalidIniSettings[] = [$setting, $expected];
- }
- }
foreach ($missingDependencies as $missingDependency) {
$errors[] = [
@@ -534,13 +506,6 @@ class OC_Util {
];
$webServerRestart = true;
}
- foreach ($invalidIniSettings as $setting) {
- $errors[] = [
- 'error' => $l->t('PHP setting "%s" is not set to "%s".', [$setting[0], var_export($setting[1], true)]),
- 'hint' => $l->t('Adjusting this setting in php.ini will make Nextcloud run again')
- ];
- $webServerRestart = true;
- }
/**
* The mbstring.func_overload check can only be performed if the mbstring