summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2013-12-03 14:30:32 +0100
committerVincent Petry <pvince81@owncloud.com>2013-12-04 10:25:22 +0100
commit61296ed7bbf638e8285f29fa65fc4a0ad6c2529a (patch)
tree15d24930f37456cacf93a97c455b63e47ab39509 /lib/private/util.php
parentb83e891456489475953438cc2ecad6bed2d5d49e (diff)
downloadnextcloud-server-61296ed7bbf638e8285f29fa65fc4a0ad6c2529a.tar.gz
nextcloud-server-61296ed7bbf638e8285f29fa65fc4a0ad6c2529a.zip
lower required php version to 5.3.3
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-xlib/private/util.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 38de07abc92..a73564b3f68 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -437,9 +437,9 @@ class OC_Util {
);
$webServerRestart = true;
}
- if(version_compare(phpversion(), '5.3.8', '<')) {
+ if(version_compare(phpversion(), '5.3.3', '<')) {
$errors[] = array(
- 'error'=>'PHP 5.3.8 or higher is required.',
+ 'error'=>'PHP 5.3.3 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.'
);
@@ -875,6 +875,14 @@ class OC_Util {
}
/**
+ * @brief Check if a PHP version older then 5.3.8 is installed.
+ * @return bool
+ */
+ public static function isPHPoutdated() {
+ return version_compare(phpversion(), '5.3.8', '<');
+ }
+
+ /**
* @brief Check if the ownCloud server can connect to the internet
* @return bool
*/