Skip to content

Commit

Permalink
chore: remove version check for apc extension
Browse files Browse the repository at this point in the history
APC is gone since PHP 7.0.

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
  • Loading branch information
kesselb committed Aug 10, 2023
1 parent b53d54c commit 7cab582
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/private/Memcache/APCu.php
Expand Up @@ -155,10 +155,7 @@ public static function isAvailable(): bool {
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;
Expand Down

0 comments on commit 7cab582

Please sign in to comment.