nicolasff/phpredis — Issue #106: $ra->_instance($ra->_target($key)) doesn't work for me
Author: z-image
Created: 2011-12-19 18:36:20+00:00
State: open

First, thanks for the software :-) An excellent addition to the gem that Redis is.

I have the following test code:

```php
ping() );

$host = $ra->_target('a');
var_dump( $host );

var_dump( $ra->_instance($host) );
?>
```
Which produces the following output:

array(2) {
["192.168.168.18:6379"]=>
string(5) "+PONG"
["192.168.168.18:6380"]=>
string(5) "+PONG"
}

string(19) "192.168.168.18:6380"

NULL

I.e. I have connection to the 2 redis instances, _target() returns a host, but _instance() returns NULL instead of Redis object.