[Tickets #3274] NEW: Cache/memcache use passed parametes

bugs@bugs.horde.org bugs at bugs.horde.org
Sun Jan 15 05:56:07 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3274
-----------------------------------------------------------------------
 Ticket             | 3274
 Created By         | adrieder at sbox.tugraz.at
 Summary            | Cache/memcache use passed parametes
 Queue              | Horde Framework Packages
 Version            | HEAD
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


adrieder at sbox.tugraz.at (2006-01-15 05:56) wrote:

This patch fixes the cache memcache driver. It wasn't actually functioning
at all because it wasn't able to connect with no connection parameters
defined:

--- memcache.php~       Fri Jan 13 18:58:05 2006
+++ memcache.php        Sun Jan 15 14:49:56 2006
@@ -54,8 +54,8 @@
         }

         $this->_db = new Memcache;
-        for ($i = 0, $n = count($this->_params['hostspec']); $i < $n; ++$i)
{
-            $this->_db->addServer($this->_params['hostspec'][$i],
$this->_params['port'][$i], $connect_persistent);
+        for ($i = 0, $n = count($params['hostspec']); $i < $n; ++$i) {
+            $this->_db->addServer($params['hostspec'][$i],
$params['port'][$i], $connect_persistent);
         }
     }





More information about the bugs mailing list