diff --git a/library/think/session/driver/Memcache.php b/library/think/session/driver/Memcache.php index c3c42d12..dbc5054e 100644 --- a/library/think/session/driver/Memcache.php +++ b/library/think/session/driver/Memcache.php @@ -49,7 +49,7 @@ class Memcache extends SessionHandler // 建立连接 foreach ((array) $hosts as $i => $host) { $port = isset($ports[$i]) ? $ports[$i] : $ports[0]; - false === $config['timeout'] ? + false === $this->config['timeout'] ? $this->handler->addServer($host, $port, $this->config['persistent'], 1) : $this->handler->addServer($host, $port, $this->config['persistent'], 1, $this->config['timeout']); }