diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index f82082d3d129f..291d7d77823b3 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -477,40 +477,17 @@ public static function checkServer(\OC\SystemConfig $config) { // 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 @@ public static function checkServer(\OC\SystemConfig $config) { $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 @@ public static function checkServer(\OC\SystemConfig $config) { ]; $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