Skip to content

Commit 06614b5

Browse files
authored
Merge pull request #397 from Geolim4/final
Added more strict checks for MongoDb driver
2 parents 4849c0e + ba248e0 commit 06614b5

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)