Skip to content

PHPC-633: Add SSL/SASL support to phpinfo() output #265

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

Closed
wants to merge 2 commits into from

Conversation

derickr
Copy link
Contributor

@derickr derickr commented Mar 16, 2016

No description provided.

@@ -2583,6 +2583,16 @@ PHP_MINFO_FUNCTION(mongodb)
#else
/* Bundled libraries, buildtime = runtime */
php_info_print_table_row(2, "libmongoc version", MONGOC_VERSION_S);
# if HAVE_MONGOC_SSL
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest using the mongoc defines for this instead: MONGOC_ENABLE_SSL, MONGOC_ENABLE_SASL.
This should be updated later to print out with ssl lib it is using, maybe add a note to PHPC-542 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These constants were not defined in the .h files that I needed it to be in:

src/libmongoc/src/mongoc/mongoc-config.h:#define MONGOC_ENABLE_SSL 1
win32/mongoc-config.h:#define MONGOC_ENABLE_SSL 1

And I don't want to expose vendored library's defines outside of it. Having specific defines for them makes for a cleaner separation.

Copy link
Contributor

Choose a reason for hiding this comment

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

So when compiling against system mongoc these well say no sasl and ssl support.
That doesn't look right.

@derickr derickr force-pushed the PHPC-633-phpinfo-sasl branch from efbd670 to fe63b15 Compare March 17, 2016 10:13
@jmikola
Copy link
Member

jmikola commented Aug 29, 2016

@derickr: Was PHPC-663 a typo? That issue looks unrelated to this PR.

I'd like to revisit this once #361 is merged, since we're now relying on libmongoc for TLS.

@derickr
Copy link
Contributor Author

derickr commented Aug 30, 2016

Looks like I meant PHPC-633

@jmikola jmikola changed the title PHPC-663: Add SSL/SASL support to phpinfo() output PHPC-633: Add SSL/SASL support to phpinfo() output Aug 30, 2016
@jmikola
Copy link
Member

jmikola commented Dec 19, 2016

See #498.

@jmikola jmikola closed this Dec 19, 2016
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