Skip to content

Show how to verify installation after building from source #1424

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 1 commit into from
May 19, 2023

Conversation

GromNaN
Copy link
Member

@GromNaN GromNaN commented May 16, 2023

For contributing, I had to search for the mongodb.so file and find a way to validate the extension was correctly compiled.

@GromNaN GromNaN requested review from jmikola and alcaeus May 16, 2023 10:30
@GromNaN
Copy link
Member Author

GromNaN commented May 16, 2023

Updated this PR to add a manual check in the doc.

CONTRIBUTING.md Outdated
extension. It must end with `-dev` suffix.

```
php -r "echo (new ReflectionExtension('mongodb'))->getVersion();"
Copy link
Member

Choose a reason for hiding this comment

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

It might also be sensible to point out php --ri mongodb, which will print the MongoDB extension portion of phpinfo, including the build configuration (e.g. libmongoc/libmongocrypt versions being used).

Copy link
Member Author

Choose a reason for hiding this comment

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

That's much better.

php --ri mongodb

mongodb

MongoDB support => enabled
MongoDB extension version => 1.16.0-dev
MongoDB extension stability => devel
libbson bundled version => 1.24.0-20230504+git89717a3beb
libmongoc bundled version => 1.24.0-20230504+git89717a3beb
libmongoc SSL => enabled
libmongoc SSL library => Secure Transport
libmongoc crypto => enabled
libmongoc crypto library => Common Crypto
libmongoc crypto system profile => disabled
libmongoc SASL => enabled
libmongoc ICU => disabled
libmongoc compression => enabled
libmongoc compression snappy => disabled
libmongoc compression zlib => enabled
libmongoc compression zstd => enabled
libmongocrypt bundled version => 1.8.0-alpha0
libmongocrypt crypto => enabled
libmongocrypt crypto library => Common Crypto
crypt_shared library version => unknown

Directive => Local Value => Master Value
mongodb.debug => no value => no value

@jmikola jmikola changed the title [doc] Explain how to load the extension after compilation Show how to verify installation after building from source May 16, 2023
@GromNaN GromNaN merged commit 24764a9 into mongodb:master May 19, 2023
@GromNaN GromNaN deleted the doc-contrib branch May 19, 2023 10:54
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.

3 participants