/**
* Flag: indicates data is compressed
*/
- const MCOMPRESSED = 2;
+ const COMPRESSED = 2;
// }}}
if (!$this->_active)
return false;
- $this->stats['get_multi']++;
+ @$this->stats['get_multi']++;
$sock_keys = array();
foreach ($keys as $key)
if (is_resource($sock)) {
$this->_flush_read_buffer($sock);
return $sock;
- }
- $hv += $this->_hashfunc($tries . $realkey);
+ }
+ $hv = $this->_hashfunc( $hv . $realkey );
}
return false;
return false;
}
- if ($this->_have_zlib && $flags & memcached::MCOMPRESSED)
+ if ($this->_have_zlib && $flags & memcached::COMPRESSED)
$ret[$rkey] = gzuncompress($ret[$rkey]);
$ret[$rkey] = rtrim($ret[$rkey]);
$this->_debugprint(sprintf("client: compressing data; was %d bytes is now %d bytes\n", $len, $c_len));
$val = $c_val;
$len = $c_len;
- $flags |= memcached::MCOMPRESSED;
+ $flags |= memcached::COMPRESSED;
}
}
if (!$this->_safe_fwrite($sock, "$cmd $key $flags $exp $len\r\n$val\r\n"))