From ad0b7255e4b906516bebc1349bb49564d8999df2 Mon Sep 17 00:00:00 2001 From: huangdijia Date: Thu, 28 Jan 2016 13:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=84=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E7=A9=BA=E9=97=B4=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/cache/driver/Memcached.php | 2 +- library/think/session/driver/Memcached.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/cache/driver/Memcached.php b/library/think/cache/driver/Memcached.php index 26d4daff..e0d809a8 100644 --- a/library/think/cache/driver/Memcached.php +++ b/library/think/cache/driver/Memcached.php @@ -41,7 +41,7 @@ class Memcached $this->handler = new \Memcached; // 设置连接超时时间(单位:毫秒) if ($this->options['timeout'] > 0) { - $this->handler->setOption(Memcached::OPT_CONNECT_TIMEOUT, $this->options['timeout']); + $this->handler->setOption(\Memcached::OPT_CONNECT_TIMEOUT, $this->options['timeout']); } // 支持集群 $hosts = explode(',', $this->options['host']); diff --git a/library/think/session/driver/Memcached.php b/library/think/session/driver/Memcached.php index 680e3d10..25384305 100644 --- a/library/think/session/driver/Memcached.php +++ b/library/think/session/driver/Memcached.php @@ -45,7 +45,7 @@ class Memcached extends SessionHandler $this->handler = new \Memcached; // 设置连接超时时间(单位:毫秒) if ($this->config['timeout'] > 0) { - $this->handler->setOption(Memcached::OPT_CONNECT_TIMEOUT, $this->config['timeout']); + $this->handler->setOption(\Memcached::OPT_CONNECT_TIMEOUT, $this->config['timeout']); } // 支持集群 $hosts = explode(',', $this->config['host']);