nicolasff/phpredis — pull request #100 by zhangjiayin (2011-12-10 13:16:18+00:00)
Title: fix infinite loop when  socket read error  with issue 90

in function redis_sock_read_bulk_reply

while(offset < bytes) {
got = php_stream_read(redis_sock->stream, reply + offset, bytes-offset);
offset += got;
}

if php_stream_read return 0 and offset not less then bytes
the loop will never end.