function get_host_port_from_server in Production check & Production monitor 6
Same name and namespace in other branches
- 7 includes/prod_check.memcache.inc \get_host_port_from_server()
3 calls to get_host_port_from_server()
- dumpCacheSlab in includes/
prod_check.memcache.inc - flushServer in includes/
prod_check.memcache.inc - sendMemcacheCommands in includes/
prod_check.memcache.inc
File
- includes/
prod_check.memcache.inc, line 53
Code
function get_host_port_from_server($server) {
$values = explode(':', $server);
if ($values[0] == 'unix' && !is_numeric($values[1])) {
return array(
$server,
0,
);
}
else {
//return values;
//Line above modified to make this work for the Drupal 'Prod check' module
return $values;
}
}