diff --git a/setup/check_install.php b/setup/check_install.php index 8f45e2c8b8..a6d99439ee 100644 --- a/setup/check_install.php +++ b/setup/check_install.php @@ -54,6 +54,12 @@ } } $checks = array( + 'phpversion' => array( + 'func' => 'php_version', + 'value' => 4.3, + 'verbose_value' => '4.3+', + 'recommended' => '5.0', + ), 'safe_mode' => array( 'func' => 'php_ini_check', 'value' => 0, @@ -177,6 +183,17 @@ { 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 '
'.($version_ok ? $passed_icon : $error_icon).' '. + lang('Checking required PHP version %1 (recommended %2)',$args['verbose_value'],$args['recommended']).': '. + phpversion().' ==> '.($version_ok ? lang('True') : lang('False'))."
\n"; + } function pear_check($package,$args) { diff --git a/setup/lang/phpgw_de.lang b/setup/lang/phpgw_de.lang index 9e302af93a..6c96ce3ae2 100644 --- a/setup/lang/phpgw_de.lang +++ b/setup/lang/phpgw_de.lang @@ -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 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 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 click here to return to setup. setup de Hier klicken um zu Setup zurück zu kehren. click here setup de Hier klicken diff --git a/setup/lang/phpgw_en.lang b/setup/lang/phpgw_en.lang index e094d3933e..5ca2234a5c 100644 --- a/setup/lang/phpgw_en.lang +++ b/setup/lang/phpgw_en.lang @@ -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 pear%1 is installed setup en Checking PEAR%1 is installed 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 click here to return to setup. setup en click here to return to setup. click here setup en Click Here