“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:

There is a missing variable declaration in get_host_port_from_server on line 41, it should be

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’.

, ,

Leave a Reply

Your email address will not be published. Required fields are marked *