Skip to content

Commit

Permalink
Merge pull request #3 from iBobik/patch-1
Browse files Browse the repository at this point in the history
#1: Allow connect by socketfile
  • Loading branch information
till authored Aug 26, 2019
2 parents 9014d18 + a8e2f8a commit ac3502b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ function sendMemcacheCommands($command){
$result = array();

foreach($GLOBALS['MEMCACHE_SERVERS'] as $server){
list($host, $port) = explode(':', $server);
if ( strstr($server, 'unix:') === false ){
list($host, $port) = explode(':', $server);
} else {
$host=$server;
$port=-1;
}
$result[$server] = sendMemcacheCommand($host,$port,$command);
}
return $result;
Expand Down

0 comments on commit ac3502b

Please sign in to comment.