Skip to content
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

PHPC-2280: Prefer OpenSSL on MacOS over Secure Transport #1463

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Sep 5, 2023

PHPC-2280

On MacOS, the driver is compiled using Secure Transport when the --with-mongodb-ssl switch is set to auto. While this works fine in a CLI context it causes segmentation faults when using the driver in php-fpm, which usually is compiled using OpenSSL. To work around this issue, we now prefer OpenSSL on all platforms, and only check for Secure Transport on MacOS if no OpenSSL installation was found. To continue using Secure Transport on MacOS, users should specify --with-mongodb-ssl=darwin.

@alcaeus alcaeus requested a review from jmikola September 5, 2023 09:16
@alcaeus alcaeus self-assigned this Sep 5, 2023
@alcaeus alcaeus changed the base branch from v1.16 to master September 6, 2023 06:33
@alcaeus alcaeus merged commit 50f1a80 into mongodb:master Sep 8, 2023
78 checks passed
@alcaeus alcaeus deleted the phpc-2280-use-openssl-darwin branch September 8, 2023 07:26
@tgalopin
Copy link

tgalopin commented Oct 5, 2023

Hi @alcaeus, thanks for this PR!

I am experiencing this specific problem & saw the issue linked. I was wondering whether you plan to release this fix in the near future or if I should consider compiling the extension manually instead?

Thanks!

@jmikola
Copy link
Member

jmikola commented Oct 5, 2023

@tgalopin: The 1.17 release will likely ship sometime in November, following libmongoc 1.25.

If you're presently on 1.16, manually compiling a stable release with --with-mongodb-ssl=openssl would be advisable until then.

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.

None yet

3 participants