added check for required php version 4.3+

This commit is contained in:
Ralf Becker 2005-11-22 18:29:51 +00:00
parent 8ff737cd08
commit 6100a04ecf
3 changed files with 19 additions and 0 deletions

View File

@ -54,6 +54,12 @@
} }
} }
$checks = array( $checks = array(
'phpversion' => array(
'func' => 'php_version',
'value' => 4.3,
'verbose_value' => '4.3+',
'recommended' => '5.0',
),
'safe_mode' => array( 'safe_mode' => array(
'func' => 'php_ini_check', 'func' => 'php_ini_check',
'value' => 0, 'value' => 0,
@ -178,6 +184,17 @@
define('PHP_SHLIB_PREFIX',PHP_SHLIB_SUFFIX == 'dll' ? 'php_' : ''); define('PHP_SHLIB_PREFIX',PHP_SHLIB_SUFFIX == 'dll' ? 'php_' : '');
} }
function php_version($name,$args)
{
global $passed_icon, $error_icon;
$version_ok = (float) phpversion() >= $args['value'];
echo '<div>'.($version_ok ? $passed_icon : $error_icon).' <span'.($version_ok ? '' : ' class="setup_error"').'>'.
lang('Checking required PHP version %1 (recommended %2)',$args['verbose_value'],$args['recommended']).': '.
phpversion().' ==> '.($version_ok ? lang('True') : lang('False'))."</span></div>\n";
}
function pear_check($package,$args) function pear_check($package,$args)
{ {
global $passed_icon, $warning_icon; global $passed_icon, $warning_icon;

View File

@ -90,6 +90,7 @@ checking file-permissions of %1 for %2 %3: %4 setup de
checking for gd support... setup de Überprüfe die GD Unterstützung... checking for gd support... setup de Überprüfe die GD Unterstützung...
checking pear%1 is installed setup de Überprüfe ob PEAR%1 installiert ist checking pear%1 is installed setup de Überprüfe ob PEAR%1 installiert ist
checking php.ini setup de Überprüfe die php.ini Datei checking php.ini setup de Überprüfe die php.ini Datei
checking required php version %1 (recommended %2) setup de Überprüfe benötigte PHP Version %1 (empfohlen %2)
checking the egroupware installation setup de Überprüfe die eGroupWare-Installation checking the egroupware installation setup de Überprüfe die eGroupWare-Installation
click <a href="index.php">here</a> to return to setup. setup de <a href="index.php">Hier klicken</a> um zu Setup zurück zu kehren. click <a href="index.php">here</a> to return to setup. setup de <a href="index.php">Hier klicken</a> um zu Setup zurück zu kehren.
click here setup de Hier klicken click here setup de Hier klicken

View File

@ -90,6 +90,7 @@ checking file-permissions of %1 for %2 %3: %4 setup en Checking file-permissions
checking for gd support... setup en Checking for GD support... checking for gd support... setup en Checking for GD support...
checking pear%1 is installed setup en Checking PEAR%1 is installed checking pear%1 is installed setup en Checking PEAR%1 is installed
checking php.ini setup en Checking php.ini checking php.ini setup en Checking php.ini
checking required php version %1 (recommended %2) setup en Checking required PHP version %1 (recommended %2)
checking the egroupware installation setup en Checking the eGroupWare Installation checking the egroupware installation setup en Checking the eGroupWare Installation
click <a href="index.php">here</a> to return to setup. setup en click <a href="index.php">here</a> to return to setup. click <a href="index.php">here</a> to return to setup. setup en click <a href="index.php">here</a> to return to setup.
click here setup en Click Here click here setup en Click Here