Skip to content

Commit 39fd02d

Browse files
committed
Added more strict checks for MongoDb driver
1 parent fb724ef commit 39fd02d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpFastCache/Drivers/Mongodb/Driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function driverCheck()
6464
The Support for the MongoDB extension will be added coming soon.', E_USER_ERROR);
6565
}
6666

67-
return extension_loaded('Mongodb');
67+
return extension_loaded('Mongodb') && class_exists('MongoClient');
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)