|
楼主 |
发表于 2015-5-19 23:17:27
|
显示全部楼层
有红色的是CI里的,是不是应该是 new Memcache()
public function open($save_path, $name)
{
$this->_memcached = new Memcached();
$this->_memcached->setOption(Memcached::OPT_BINARY_PROTOCOL, TRUE); // required for touch() usage
$server_list = array();
foreach ($this->_memcached->getServerList() as $server)
{
$server_list[] = $server['host'].':'.$server['port'];
}
if ( ! preg_match_all('#,?([^,:]+)\\d{1,5})(?:\\d+))?#', $this->_config['save_path'], $matches, PREG_SET_ORDER))
|
|