Skip to content

Commit da7e3a7

Browse files
committed
Added more strict checks for MongoDb driver
1 parent 7ce4c4f commit da7e3a7

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
@@ -67,7 +67,7 @@ public function driverCheck()
6767
The Support for the MongoDB extension will be added coming soon.', E_USER_ERROR);
6868
}
6969

70-
return extension_loaded('Mongodb');
70+
return extension_loaded('Mongodb') && class_exists('MongoClient');
7171
}
7272

7373
/**

0 commit comments

Comments
 (0)