Merge pull request #6127 from owncloud/minimum_php_version

make 5.3.8 the minimum supported version.
This commit is contained in:
Morris Jobke 2013-11-29 08:07:43 -08:00
commit 0d464421ed
1 changed files with 4 additions and 4 deletions

View File

@ -437,11 +437,11 @@ class OC_Util {
);
$webServerRestart = true;
}
if(floatval(phpversion()) < 5.3) {
if(version_compare(phpversion(), '5.3.8', '<')) {
$errors[] = array(
'error'=>'PHP 5.3 is required.',
'hint'=>'Please ask your server administrator to update PHP to version 5.3 or higher.'
.' PHP 5.2 is no longer supported by ownCloud and the PHP community.'
'error'=>'PHP 5.3.8 or higher is required.',
'hint'=>'Please ask your server administrator to update PHP to the latest version.'
.' Your PHP version is no longer supported by ownCloud and the PHP community.'
);
$webServerRestart = true;
}