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

always load the openssl extension #3

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Conversation

thirdeyenick
Copy link

This should fix potentially missing openssl extensions (reported in paketo-buildpacks/composer#27). The fix is to always load openssl.so.

@@ -448,7 +449,7 @@ func writeComposerPhpIni(logger scribe.Emitter, context packit.BuildContext) (co

phpIni := fmt.Sprintf(`[PHP]
extension_dir = "%s"
extension = openssl.so`, os.Getenv(PhpExtensionDir))
extension = %s.so`, os.Getenv(PhpExtensionDir), opensslExtension)
Copy link

Choose a reason for hiding this comment

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

You know why openssl is in here in the first place?

Copy link
Author

@thirdeyenick thirdeyenick Dec 1, 2023

Choose a reason for hiding this comment

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

Don't know exactly. composer install installs modules from somewhere. So a HTTPS connection might be needed. The composer installer also seems to check for the extension.

Copy link

Choose a reason for hiding this comment

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

ok, that makes sense

This should fix potentially missing openssl extensions (reported in paketo-buildpacks/composer#27). The fix is to always load openssl.so.
@thirdeyenick thirdeyenick force-pushed the always-enable-openssl branch from 8dea3ac to 3fc9482 Compare December 1, 2023 14:21
@thirdeyenick thirdeyenick merged commit f207e00 into main Dec 1, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants