Index: memcache.php
===================================================================
--- memcache.php	(revision 2896)
+++ memcache.php	(working copy)
@@ -196,7 +196,8 @@
   }
 
   function connect() {
-    $this->memcache =& new Memcache;
+    $memcache = new Memcache;
+    $this->memcache = & $memcache;
     foreach ($this->settings['servers'] as $server) {
       list($host, $port) = explode(':', $server);
       if (!$this->memcache->addServer($host, $port)) {
