aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-16 22:36:08 +0100
committerLukas Reschke <lukas@owncloud.com>2015-02-17 13:28:02 +0100
commitb701bbd8c5f6051ec0f4bd360473290cf9ebdf71 (patch)
treec751e985d9c265eb3831419ec0089a6f66e34798 /lib/private
parent76c511de92f1b4dc6dcc31ac5ae15ffade29bb18 (diff)
downloadnextcloud-server-b701bbd8c5f6051ec0f4bd360473290cf9ebdf71.tar.gz
nextcloud-server-b701bbd8c5f6051ec0f4bd360473290cf9ebdf71.zip
Use APCu only if available in version 4.0.6 and higher
APCu before 4.0.6 is unbelievable buggy and tend to segfault the PHP process (i.e. the whole webserver) This potentially fixes https://github.com/owncloud/core/issues/14175 Requires a backport to stable8
Diffstat (limited to 'lib/private')
-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;
}