From a8a7db51ca08e38667ed11ed4773aaedcddd3496 Mon Sep 17 00:00:00 2001 From: scragg0x Date: Fri, 7 Sep 2012 13:36:15 -0500 Subject: [PATCH] Disable autoload for the class_exists func MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I ran into an autoload problem because of this class_exists function. So I set the second arg to false to prevent it from calling __autoload.   It doesn't make sense to try (to autoload) anyway because it's going to declare a skeleton if the class doesn't exist. --- lib/Redisent/Redisent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Redisent/Redisent.php b/lib/Redisent/Redisent.php index 1580b89..4b480f6 100644 --- a/lib/Redisent/Redisent.php +++ b/lib/Redisent/Redisent.php @@ -13,7 +13,7 @@ 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 */ -if (! class_exists('RedisException')) { +if (! class_exists('RedisException', false)) { class RedisException extends Exception { } }