-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
CI fixes #22754
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
CI fixes #22754
Conversation
nicolas-grekas
commented
May 18, 2017
Q | A |
---|---|
Branch? | 2.7 |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | - |
License | MIT |
Doc PR | - |
@@ -31,11 +31,11 @@ protected function setUp() | |||
{ | |||
parent::setUp(); | |||
|
|||
if (!extension_loaded('mongo') && !extension_loaded('mongodb')) { | |||
if (!extension_loaded('mongo') && (!extension_loaded('mongodb') || !class_exists('MongoDB\Client', false))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For PHP7, I would check separately whether the PHP extension is installed or the userland library (mongodb/mongodb) in two different steps. Users which did not install the userland library may not understand that they also need to install it in addition to the PHP "mongodb" extension.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, generally speaking, the mongo
extension should no longer be used. It is actually flagged as legacy since it does not support MongoDB 3.2 and 3.4, and won't be updated anymore.
Please check the drivers compatibility matrix for more information regarding versions supported (https://docs.mongodb.com/ecosystem/drivers/driver-compatibility-reference/#php-driver-compatibility)
@csarrazi green :) thanks for your help (we have to keep mongo.so as it works and has to be supported) |
Thank you @nicolas-grekas. |
This PR was merged into the 2.7 branch. Discussion ---------- CI fixes | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- a34b8ce CI fixes
@nicolas-grekas No problem! As mentioned on Twitter, I'll try to submit a PR to deprecate the legacy |