nicolasff/phpredis — Issue #86: RedisArray, unwatch - Fatal Error
Author: trong
Created: 2011-11-24 05:16:12+00:00
State: open

Hello, Nicolas!

This code returns the fatal error:

```php
$key = 'test_err';

$ra = new RedisArray(array('127.0.0.1:6379'));
echo ($ra->set($key, 'test')) ? 'Set: OK' : 'Set: Failed', "\n";
echo "\nGetting value: \n";
var_dump($ra->get($key));

$ra->watch($key);

echo "\nAfter watch: \n";
var_dump($ra->get($key));

echo "\nTry to unwatch:\n";
$ra->unwatch();
```

My resonse:

```
Set: OK

Getting value:
string(4) 'test'

After watch:
string(4) 'test'

Try to unwatch:
PHP Fatal error: RedisArray::__call(): Could not find key in ..../test.php on line 15
```