Skip to content

Conversation

nicolas-grekas
Copy link
Member

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))) {
Copy link
Contributor

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.

Copy link
Contributor

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)

@nicolas-grekas
Copy link
Member Author

@csarrazi green :) thanks for your help (we have to keep mongo.so as it works and has to be supported)

@fabpot
Copy link
Member

fabpot commented May 18, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit a34b8ce into symfony:2.7 May 18, 2017
fabpot added a commit that referenced this pull request May 18, 2017
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 nicolas-grekas deleted the ci-tweaks branch May 18, 2017 17:35
@csarrazi
Copy link
Contributor

@nicolas-grekas No problem! As mentioned on Twitter, I'll try to submit a PR to deprecate the legacy mongo extension, as the mongodb extension is supported for all PHP versions since 5.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants