diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2023-08-05 17:54:32 +0200 |
---|---|---|
committer | Daniel <mail@danielkesselberg.de> | 2023-08-10 15:02:19 +0200 |
commit | 7cab58237d2cdc83b20822a8193e45f526016b51 (patch) | |
tree | 6eb4013fcf9b2719e195056adbb1f1e542452893 /lib/private/Memcache | |
parent | b53d54ce25b7118360f12eb498fcde740eb37cd0 (diff) | |
download | nextcloud-server-7cab58237d2cdc83b20822a8193e45f526016b51.tar.gz nextcloud-server-7cab58237d2cdc83b20822a8193e45f526016b51.zip |
chore: remove version check for apc extension
APC is gone since PHP 7.0.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/Memcache')
-rw-r--r-- | lib/private/Memcache/APCu.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/private/Memcache/APCu.php b/lib/private/Memcache/APCu.php index 957926ab848..f3221fc7b77 100644 --- a/lib/private/Memcache/APCu.php +++ b/lib/private/Memcache/APCu.php @@ -155,10 +155,7 @@ class APCu extends Cache implements IMemcache { return false; } elseif (!\OC::$server->get(IniGetWrapper::class)->getBool('apc.enable_cli') && \OC::$CLI) { return false; - } elseif ( - version_compare(phpversion('apc') ?: '0.0.0', '4.0.6') === -1 && - version_compare(phpversion('apcu') ?: '0.0.0', '5.1.0') === -1 - ) { + } elseif (version_compare(phpversion('apcu') ?: '0.0.0', '5.1.0') === -1) { return false; } else { return true; |