修正memcache驱动一处bug

This commit is contained in:
huangdijia
2016-02-02 10:15:48 +08:00
parent 6e7151145b
commit dfa756f181

View File

@@ -54,8 +54,8 @@ class Memcache extends SessionHandler
foreach ((array) $hosts as $i => $host) {
$port = isset($ports[$i]) ? $ports[$i] : $ports[0];
$this->config['timeout'] > 0 ?
$this->handler->addServer($host, $port, $this->config['persistent'], 1) :
$this->handler->addServer($host, $port, $this->config['persistent'], 1, $this->config['timeout']);
$this->handler->addServer($host, $port, $this->config['persistent'], 1, $this->config['timeout']) :
$this->handler->addServer($host, $port, $this->config['persistent'], 1);
}
return true;
}