修正一些存在的警告错误

This commit is contained in:
thinkphp
2016-02-02 15:15:44 +08:00
parent 78718c7739
commit 8ec6835dca
12 changed files with 30 additions and 22 deletions

View File

@@ -24,6 +24,7 @@ class Memcache
'timeout' => 0, // 超时时间(单位:毫秒)
'persistent' => true,
'length' => 0,
'prefix' => '',
];
/**
@@ -51,7 +52,7 @@ class Memcache
foreach ((array) $hosts as $i => $host) {
$port = isset($ports[$i]) ? $ports[$i] : $ports[0];
$this->options['timeout'] > 0 ?
$this->handler->addServer($host, $port, $this->options['persistent'], 1, $this->options['timeout']) :
$this->handler->addServer($host, $port, $this->options['persistent'], 1, $this->options['timeout']) :
$this->handler->addServer($host, $port, $this->options['persistent'], 1);
}
}

View File

@@ -23,6 +23,7 @@ class Memcached
'expire' => 0,
'timeout' => 0, // 超时时间(单位:毫秒)
'length' => 0,
'prefix' => '',
];
/**

View File

@@ -30,6 +30,7 @@ class Redis
'expire' => false,
'persistent' => false,
'length' => 0,
'prefix' => '',
];
/**

View File

@@ -28,6 +28,7 @@ class Sae
'timeout' => false,
'persistent' => false,
'length' => 0,
'prefix' => '',
];
/**