mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修正memcache驱动一处bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user