From dfa756f181242aa8acc8673f3b0eae1a712b307f Mon Sep 17 00:00:00 2001 From: huangdijia Date: Tue, 2 Feb 2016 10:15:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3memcache=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=E4=B8=80=E5=A4=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/session/driver/Memcache.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/session/driver/Memcache.php b/library/think/session/driver/Memcache.php index d8058550..e3b0d1be 100644 --- a/library/think/session/driver/Memcache.php +++ b/library/think/session/driver/Memcache.php @@ -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; }