-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MongoDB class existence check is out of date (with PHP7.0) #2116
Comments
That is assuming the new MongoDB\Client class has exactly the same API als the old Mongo class. Is that the case? If not, the entire abstraction layer has to be rewritten, in which case you'd probably be better of using an external Mongo library. |
Thank you for your reply. |
Is your class override complete? i.e. do all methods available work with the new MongoDB Client, or did you just override the methods you use? I am willing to try and find the time to add the abstraction, but I am not a Mongo user, if you have complete code and willing to donate it? |
currently we only override only some methods we used. |
PHP MongoDB Driver has been updated in 2016, the old client class
Mongo
is deprecated.https://derickrethans.nl/new-drivers.html
But we still have this check in our core MongoDB class. Should we change it
The new check should be
By the way, I think in the near future we should remove the
! class_exists('Mongo')
check too.The text was updated successfully, but these errors were encountered: