We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9014d18 + a8e2f8a commit ac3502bCopy full SHA for ac3502b
src/functions.php
@@ -44,7 +44,12 @@ function sendMemcacheCommands($command){
44
$result = array();
45
46
foreach($GLOBALS['MEMCACHE_SERVERS'] as $server){
47
- list($host, $port) = explode(':', $server);
+ if ( strstr($server, 'unix:') === false ){
48
+ list($host, $port) = explode(':', $server);
49
+ } else {
50
+ $host=$server;
51
+ $port=-1;
52
+ }
53
$result[$server] = sendMemcacheCommand($host,$port,$command);
54
}
55
return $result;
0 commit comments