Merge pull request #56 from vaxltd/issue19/redeclare-redisexception

Ensure RedisException is not redeclared to allow PHPRedis compatibility
This commit is contained in:
Chris Boulton 2012-08-21 05:45:49 -07:00
commit 28a98d73b1

View File

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