nicolasff/phpredis — pull request #225 by pavel-krush (2012-08-07 06:50:34+00:00)
Title: Fix segfault when using persistent connections

Steps to reproduce:
* Set `timeout 1` in Redis config
* Restart Redis
* Run the following script:

``` php
pconnect('localhost');

$i = 1;
while(true) {
sleep($i);
$redis->set('testkey', $i);
print "$i - ok\n";
$i = $i * 2;
}
```

The result will be like this:
```
1 - ok
2 - ok
Segmentation fault
```

The problem appeared [here](https://github.com/nicolasff/phpredis/commit/39df0b7a2c3eed423c22412ad803af121a883900#library.c)