18 07 2012
“Cant connect to:v:a” error from memcache.php monitoring script
I downloaded the memcache pecl extension today and after opening the included monitoring script I got this error:
1 |
Cant connect to:v:a |
There is a missing variable declaration in get_host_port_from_server on line 41, it should be
1 |
return $values; |
Make the simple change and it will be working. The function is supposed to return the parts of the connection string host:port, however when the connection string is not a unix socket it simply returns the array.
sendMemcacheCommands expects this array to contain the values for host and port but when the function returns the string ‘values’ it instead of the variable $values holding the array takes the first 2 characters of string, ‘v’ and ‘a’.
Fix wrong resolution at MDM/LightDM login screen in Linux Mint/Ubuntu Better font rendering in PHPstorm on Linux