diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-16 22:36:08 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-02-17 13:28:02 +0100 |
commit | b701bbd8c5f6051ec0f4bd360473290cf9ebdf71 (patch) | |
tree | c751e985d9c265eb3831419ec0089a6f66e34798 /settings/admin.php | |
parent | 76c511de92f1b4dc6dcc31ac5ae15ffade29bb18 (diff) | |
download | nextcloud-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 'settings/admin.php')
-rw-r--r-- | settings/admin.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/admin.php b/settings/admin.php index cdbc2700a8d..32e92edb145 100644 --- a/settings/admin.php +++ b/settings/admin.php @@ -85,6 +85,10 @@ $template->assign('databaseOverload', $databaseOverload); // warn if Windows is used $template->assign('WindowsWarning', OC_Util::runningOnWindows()); +// warn if outdated version of APCu is used +$template->assign('ApcuOutdatedWarning', + extension_loaded('apcu') && version_compare(phpversion('apc'), '4.0.6') === -1); + // add hardcoded forms from the template $forms = OC_App::getForms('admin'); $l = OC_L10N::get('settings'); |