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

[Replicate] compatibility with PHP 5.x #97

Merged
merged 20 commits into from
Mar 24, 2023
Merged

[Replicate] compatibility with PHP 5.x #97

merged 20 commits into from
Mar 24, 2023

Conversation

TingDaoK
Copy link
Contributor

@TingDaoK TingDaoK commented Mar 17, 2023

Issue #, if available:

#95
original: #96

Description of changes:

  • Make sure run the test... Run the test for php5.5
  • Add readme section about the mismatch of libcrypto from php and awscrt.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment on lines +40 to +41
USE_OPENSSL=OFF make
./dev-scripts/run_tests.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

Debatable: maybe we should update our CI to run it with the same version of OpenSSL instead of AWS-LC.

Copy link
Contributor

Choose a reason for hiding this comment

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

we tried, but it was going to take a lot more work, and this seemed like a reasonable workaround for now

Comment on lines +40 to +41
USE_OPENSSL=OFF make
./dev-scripts/run_tests.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

add comments explaining hack

Suggested change
USE_OPENSSL=OFF make
./dev-scripts/run_tests.sh
# Normally, CRT uses the system's default libcrypto.so.
# But in this CI run, PHP 5.5 is using a different older libcrypto.so.
# When an applications uses two different libcrypto.so at the same time, things tend to explode.
# Therefore, in this CI run we build AWS-LC statically, and use its libcrypto.a instead.
USE_OPENSSL=OFF make
./dev-scripts/run_tests.sh

Copy link
Contributor Author

Choose a reason for hiding this comment

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

added a bit more to explain that php5.5 cannot build with openssl>=1.1 referring to shivammathur/setup-php#714 (comment)

@TingDaoK TingDaoK merged commit 1926277 into main Mar 24, 2023
@TingDaoK TingDaoK deleted the fix-php-5 branch March 24, 2023 20:22
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

4 participants