Skip to content
Permalink
Browse files

Bugfix for: Memcached Engine segfaults with memcached client version …

…< 2.0.0

Fixes #5028
  • Loading branch information...
tersmitten committed Nov 18, 2014
1 parent 30f8073 commit f2c84602b914f4863afee9b8a208bcb34dd13004
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/Cake/Cache/Engine/MemcachedEngine.php
@@ -104,7 +104,11 @@ public function init($settings = array()) {
return true;
}
$this->_Memcached = new Memcached($this->settings['persistent'] ? (string)$this->settings['persistent'] : null);
if (!$this->settings['persistent']) {
$this->_Memcached = new Memcached();
} else {
$this->_Memcached = new Memcached((string)$this->settings['persistent']);
}
$this->_setOptions();
if (count($this->_Memcached->getServerList())) {

0 comments on commit f2c8460

Please sign in to comment.
You can’t perform that action at this time.