nicolasff/phpredis — comment on commit 0642c4508274810fb7aa8e04df419cec15a0f800
File:  line 0
By iFullgaz:

Actually, I found that the first throw (line 301) prevents me from using a Redis object to connect to a red is instance.
I get 'Redis server went away' exception straight away. Example:
$redis = new Redis();
$redis->connect();
$redis->set('a', 1); <= Exception raised.
When I comment line 301, it works again...