From 10b55a88a811de1577f59057d6eb173ab0b3e716 Mon Sep 17 00:00:00 2001
From: Mathieu Parent <math.parent@gmail.com>
Date: Mon, 8 Apr 2013 15:40:26 +0200
Subject: [PATCH 1/3] Disable compression when not available

See http://bugs.debian.org/704982
---
 framework/Cache/lib/Horde/Cache.php |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/framework/Cache/lib/Horde/Cache.php b/framework/Cache/lib/Horde/Cache.php
index 5b3887f..4604cbd 100644
--- a/framework/Cache/lib/Horde/Cache.php
+++ b/framework/Cache/lib/Horde/Cache.php
@@ -62,6 +62,9 @@ class Horde_Cache
         }
 
         $this->_params = array_merge($this->_params, $params);
+        if ($this->_params['compress'] && !class_exists('Horde_Compress_Fast')) {
+            $this->_params['compress'] = false;
+        }
         $this->_storage = $storage;
     }
 
-- 
1.7.10.4

