diff options
author | rxu <rxu@mail.ru> | 2017-06-17 15:42:08 +0700 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2017-06-17 15:42:08 +0700 |
commit | c255e1fae82ffa4a80bda83cfadf86b765da0849 (patch) | |
tree | 7c08000c68b4e91bfa46a7d72926569860bb8a27 /phpBB/phpbb/cache/driver/memcached.php | |
parent | 1c4f49249ffe8457914372b08b15056ad5d38085 (diff) | |
download | forums-c255e1fae82ffa4a80bda83cfadf86b765da0849.tar forums-c255e1fae82ffa4a80bda83cfadf86b765da0849.tar.gz forums-c255e1fae82ffa4a80bda83cfadf86b765da0849.tar.bz2 forums-c255e1fae82ffa4a80bda83cfadf86b765da0849.tar.xz forums-c255e1fae82ffa4a80bda83cfadf86b765da0849.zip |
[ticket/15246] Allow use of Unix socket as memcache(d) host
PHPBB3-15246
Diffstat (limited to 'phpBB/phpbb/cache/driver/memcached.php')
-rw-r--r-- | phpBB/phpbb/cache/driver/memcached.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/phpbb/cache/driver/memcached.php b/phpBB/phpbb/cache/driver/memcached.php index 105e763af4..a7da22d7e8 100644 --- a/phpBB/phpbb/cache/driver/memcached.php +++ b/phpBB/phpbb/cache/driver/memcached.php @@ -67,8 +67,8 @@ class memcached extends \phpbb\cache\driver\memory foreach (explode(',', PHPBB_ACM_MEMCACHE) as $u) { - $parts = explode('/', $u); - $this->memcached->addServer(trim($parts[0]), trim($parts[1])); + preg_match('#(.*)/(\d+)#', $u, $parts); + $this->memcache->addServer(trim($parts[1]), (int) trim($parts[2])); } } |