This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
Typo in variable for ExtMongoDbResourceManager adapter makes passing db a no-op #181
Closed
1 task done
The latest commit on master uses
isset($resouce)
, which is a typo (and an undeclared variable). So selectCollection is always passed'zend'
as the first argument (noticed when runningcodespell
)Attempting to fix this may break existing cache installations - I'm not sure what the impact is because I'm not familiar with use cases.
Code to reproduce the issue
Creating resources with a non-default db (e.g. 'db1', 'db2') and managing them with this cache would instead get created in the 'zend' db when using ExtMongoDbResourceManager but not MongoDbResourceManager and unexpectedly affect what was intended to be a different db?
(I'm not familiar enough with this library to be sure of that)
Expected results
Actual results
The text was updated successfully, but these errors were encountered: