Skip to content
Snippets Groups Projects
Commit 7ca0de9b authored by Frank Karlitschek's avatar Frank Karlitschek
Browse files

make 5.3.8 the minimum supported version. This fixes several issues with...

make 5.3.8 the minimum supported version. This fixes several issues with broken PHP versions like: https://github.com/owncloud/core/issues/5734
Also make the version compare clearer. It was pure luck that floatval on a php version returned the correct value.
parent 1dc931b7
Branches
No related tags found
No related merge requests found
...@@ -437,11 +437,11 @@ class OC_Util { ...@@ -437,11 +437,11 @@ class OC_Util {
); );
$webServerRestart = true; $webServerRestart = true;
} }
if(floatval(phpversion()) < 5.3) { if(version_compare(phpversion(), '5.3.8', '<')) {
$errors[] = array( $errors[] = array(
'error'=>'PHP 5.3 is required.', 'error'=>'PHP 5.3.8 or higher is required.',
'hint'=>'Please ask your server administrator to update PHP to version 5.3 or higher.' 'hint'=>'Please ask your server administrator to update PHP to the latest version.'
.' PHP 5.2 is no longer supported by ownCloud and the PHP community.' .' Your PHP version is no longer supported by ownCloud and the PHP community.'
); );
$webServerRestart = true; $webServerRestart = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment