backport from MW1.24: phpredis fix