Fix issue #19 by ensuring RedisException is not redeclared

This commit is contained in:
Matt Heath 2012-05-10 15:01:00 +01:00
parent b0fbfa4f15
commit 5b89607e4b

View File

@ -11,9 +11,12 @@ define('CRLF', sprintf('%s%s', chr(13), chr(10)));
/** /**
* Wraps native Redis errors in friendlier PHP exceptions * Wraps native Redis errors in friendlier PHP exceptions
* Only declared if class doesn't already exist to ensure compatibility with php-redis
*/ */
if (! class_exists('RedisException')) {
class RedisException extends Exception { class RedisException extends Exception {
} }
}
/** /**
* Redisent, a Redis interface for the modest among us * Redisent, a Redis interface for the modest among us