[Pkg-owncloud-commits] [owncloud] 88/118: Do not use APCu when apc.enabled is Off.

David Prévot taffit at moszumanska.debian.org
Fri Mar 27 22:13:16 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit ba9446a1b860c8932fa22de09edadb4e04e94c30
Author: Andreas Fischer <bantu at owncloud.com>
Date:   Wed Mar 25 14:52:01 2015 +0100

    Do not use APCu when apc.enabled is Off.
---
 lib/private/memcache/apcu.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/private/memcache/apcu.php b/lib/private/memcache/apcu.php
index 1043690..410877e 100644
--- a/lib/private/memcache/apcu.php
+++ b/lib/private/memcache/apcu.php
@@ -12,6 +12,8 @@ class APCu extends APC {
 	static public function isAvailable() {
 		if (!extension_loaded('apcu')) {
 			return false;
+		} elseif (!ini_get('apc.enabled')) {
+			return false;
 		} elseif (!ini_get('apc.enable_cli') && \OC::$CLI) {
 			return false;
 		} elseif (version_compare(phpversion('apc'), '4.0.6') === -1) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list