Skip to content

Commit a8a7db5

Browse files
committed
Disable autoload for the class_exists func
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.
1 parent 64cd187 commit a8a7db5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Redisent/Redisent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Wraps native Redis errors in friendlier PHP exceptions
1414
* Only declared if class doesn't already exist to ensure compatibility with php-redis
1515
*/
16-
if (! class_exists('RedisException')) {
16+
if (! class_exists('RedisException', false)) {
1717
class RedisException extends Exception {
1818
}
1919
}

0 commit comments

Comments
 (0)