Merge branch '3.2.x'

This commit is contained in:
Marc Alexander 2017-06-25 10:32:43 +02:00
commit fd9a084386
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 4 additions and 4 deletions

View file

@ -52,8 +52,8 @@ class memcache extends \phpbb\cache\driver\memory
$this->memcache = new \Memcache; $this->memcache = new \Memcache;
foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u) foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u)
{ {
$parts = explode('/', $u); preg_match('#(.*)/(\d+)#', $u, $parts);
$this->memcache->addServer(trim($parts[0]), trim($parts[1])); $this->memcache->addServer(trim($parts[1]), (int) trim($parts[2]));
} }
$this->flags = (PHPBB_ACM_MEMCACHE_COMPRESS) ? MEMCACHE_COMPRESSED : 0; $this->flags = (PHPBB_ACM_MEMCACHE_COMPRESS) ? MEMCACHE_COMPRESSED : 0;
} }

View file

@ -67,8 +67,8 @@ class memcached extends \phpbb\cache\driver\memory
foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u) foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u)
{ {
$parts = explode('/', $u); preg_match('#(.*)/(\d+)#', $u, $parts);
$this->memcached->addServer(trim($parts[0]), trim($parts[1])); $this->memcache->addServer(trim($parts[1]), (int) trim($parts[2]));
} }
} }