summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-18 01:07:54 +0100
committerLukas Reschke <lukas@owncloud.com>2015-02-18 01:07:54 +0100
commitceaa193df24b72817e6d352b3ad4eeaa24db9a1b (patch)
treefdb41d2c4a0df0539671007802edf17b6428f9a6 /lib
parent5d7d2adcbf3bad8d5c74007fcf132b7868c00437 (diff)
parentb701bbd8c5f6051ec0f4bd360473290cf9ebdf71 (diff)
downloadnextcloud-server-ceaa193df24b72817e6d352b3ad4eeaa24db9a1b.tar.gz
nextcloud-server-ceaa193df24b72817e6d352b3ad4eeaa24db9a1b.zip
Merge pull request #14273 from owncloud/require-at-least-apcu-4-0-6
Use APCu only if available in version 4.0.6 and higher
Diffstat (limited to 'lib')
-rw-r--r--lib/private/memcache/apcu.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/memcache/apcu.php b/lib/private/memcache/apcu.php
index 7f780f32718..1043690a361 100644
--- a/lib/private/memcache/apcu.php
+++ b/lib/private/memcache/apcu.php
@@ -14,6 +14,8 @@ class APCu extends APC {
return false;
} elseif (!ini_get('apc.enable_cli') && \OC::$CLI) {
return false;
+ } elseif (version_compare(phpversion('apc'), '4.0.6') === -1) {
+ return false;
} else {
return true;
}