Skip to content

Commit

Permalink
Memcached can not connect using a socket
Browse files Browse the repository at this point in the history
In the Memcache client the socket path is prefixed by unix:// in the Memcached client it is not
  • Loading branch information
tersmitten committed Jan 12, 2016
1 parent f3a990d commit d295cc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Cache/Engine/MemcachedEngine.php
Expand Up @@ -241,8 +241,9 @@ protected function _setOptions()
*/
protected function _parseServerString($server)
{
if (strpos($server, 'unix://') === 0) {
return [$server, 0];
$socketTransport = 'unix://';
if (strpos($server, $socketTransport) === 0) {
return [substr($server, strlen($socketTransport)), 0];
}
if (substr($server, 0, 1) === '[') {
$position = strpos($server, ']:');
Expand Down

0 comments on commit d295cc4

Please sign in to comment.