Skip to content

PHPLIB-622 Versioned MongoDB API for Drivers #816

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

Merged
merged 7 commits into from
Mar 30, 2021

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Mar 26, 2021

PHPLIB-622

Docs are part of #815. Currently tests against a WIP version of ext-mongodb, which I'll remove once mongodb/mongo-php-driver#1204 is merged.

@alcaeus alcaeus requested a review from jmikola March 26, 2021 07:55
@alcaeus alcaeus self-assigned this Mar 26, 2021
@alcaeus alcaeus force-pushed the phplib-622 branch 2 times, most recently from bbc13f2 to d6d9c63 Compare March 26, 2021 07:59
@alcaeus alcaeus force-pushed the phplib-622 branch 2 times, most recently from 7532582 to 3d3233d Compare March 26, 2021 13:26
@@ -12,6 +12,7 @@ AUTH=${AUTH:-noauth}
SSL=${SSL:-nossl}
MONGODB_URI=${MONGODB_URI:-}
TESTS=${TESTS:-}
export API_VERSION=${API_VERSION:-}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the list in "Supported/used environment variables" above be updated? It looks like it's out of sync with what's happening here.

Also, is there a reason we use export here but not in other lines? I do see it's used for EXTENSION_VERSION below, but nothing else.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API_VERSION is used in the tests, while the others are used in this script, hence the export to avoid having to modify the call to phpunit below.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MONGODB_URI is also used by PHPUnit and it doesn't have an export line.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, no idea why I added it since it also works without.

@@ -12,6 +12,7 @@ AUTH=${AUTH:-noauth}
SSL=${SSL:-nossl}
MONGODB_URI=${MONGODB_URI:-}
TESTS=${TESTS:-}
export API_VERSION=${API_VERSION:-}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MONGODB_URI is also used by PHPUnit and it doesn't have an export line.

@jmikola
Copy link
Member

jmikola commented Mar 26, 2021

One outstanding question about export in run-tests.sh, but LGTM.

@alcaeus alcaeus merged commit d1b18dd into mongodb:master Mar 30, 2021
@alcaeus alcaeus deleted the phplib-622 branch March 30, 2021 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants