-
Notifications
You must be signed in to change notification settings - Fork 208
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
Conversation
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();" |
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.
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).
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.
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
Co-authored-by: Jeremy Mikola <[email protected]>
For contributing, I had to search for the
mongodb.so
file and find a way to validate the extension was correctly compiled.