summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2014-11-10 18:18:33 +0100
committerAndrey Andreev <narf@devilix.net>2014-11-10 18:18:33 +0100
commit4f50256a84e8052fc3356683f28286d36f8a322c (patch)
tree8af110e4066ddf7f07c916c831aafe7f5f0a270f /system/libraries/Session
parenta8f29f9ddaeac5cee582a51ce7f255459e1ca711 (diff)
#3073 (feature/session): Enable Memcached::OPT_BINARY_PROTOCOL
Otherwise Memcached::touch() doesn't work.
Diffstat (limited to 'system/libraries/Session')
-rw-r--r--system/libraries/Session/drivers/Session_memcached_driver.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/system/libraries/Session/drivers/Session_memcached_driver.php b/system/libraries/Session/drivers/Session_memcached_driver.php
index 2ee922f94..6652addee 100644
--- a/system/libraries/Session/drivers/Session_memcached_driver.php
+++ b/system/libraries/Session/drivers/Session_memcached_driver.php
@@ -86,6 +86,7 @@ class CI_Session_memcached_driver extends CI_Session_driver implements SessionHa
public function open($save_path, $name)
{
$this->_memcached = new Memcached();
+ $this->_memcached->setOption(Memcached::OPT_BINARY_PROTOCOL, TRUE); // required for touch() usage
$server_list = array();
foreach ($this->_memcached->getServerList() as $server)
{