#105405 by chx, Pancho: (regression) remove web server version checking; it is not in Drupal 5; Apache 1.3 is surpassed for a long time now

6.x
Gábor Hojtsy 2008-01-30 20:30:35 +00:00
parent d171a9e75a
commit 7f2f0072f9
2 changed files with 1 additions and 28 deletions

View File

@ -24,34 +24,12 @@ function system_requirements($phase) {
);
}
// Test web server
// Web server information.
$software = $_SERVER['SERVER_SOFTWARE'];
$requirements['webserver'] = array(
'title' => $t('Web server'),
'value' => $software,
);
// Use server info string, if present.
if ($software && preg_match('![0-9]!', $software)) {
list($server, $version) = split('[ /]', $software);
switch ($server) {
case 'Apache':
if (version_compare($version, DRUPAL_MINIMUM_APACHE) < 0) {
$requirements['webserver']['description'] = $t('Your Apache server is too old. Drupal requires at least Apache %version.', array('%version' => DRUPAL_MINIMUM_APACHE));
$requirements['webserver']['severity'] = REQUIREMENT_ERROR;
}
break;
default:
$requirements['webserver']['description'] = $t('The web server you\'re using has not been tested with Drupal and might not work properly.');
$requirements['webserver']['severity'] = REQUIREMENT_WARNING;
break;
}
}
else {
$requirements['webserver']['value'] = $software ? $software : $t('Unknown');
$requirements['webserver']['description'] = $t('Unable to determine your web server type and version. Drupal might not work properly.');
$requirements['webserver']['severity'] = REQUIREMENT_WARNING;
}
// Test PHP version
$requirements['php'] = array(

View File

@ -36,11 +36,6 @@ define('DRUPAL_MINIMUM_MYSQL', '4.1.1');
*/
define('DRUPAL_MINIMUM_PGSQL', '7.4');
/**
* Minimum supported version of Apache, if it is used.
*/
define('DRUPAL_MINIMUM_APACHE', '1.3');
/**
* Maximum age of temporary files in seconds.
*/