[Replicate] compatibility with PHP 5.x (#97)

original: https://github.com/awslabs/aws-crt-php/pull/96

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

---------

Co-authored-by: Remi Collet <[email protected]>
This commit is contained in:
Dengke Tang
2023-03-24 13:22:19 -07:00
committed by GitHub
co-authored by Remi Collet
parent ed3f8ca16d
commit 1926277fc7
4 changed files with 31 additions and 10 deletions
+6 -7
View File
@@ -37,13 +37,12 @@ jobs:
run: |
phpize
./configure
make
- name: Install dependencies
# get path to composer.phar so we can run it with custom php.ini
run: |
COMPOSER_PHAR=$(realpath $(which composer))
php -c php.ini $COMPOSER_PHAR update --no-interaction
# Normally, CRT uses the system's default libcrypto.so.
# But in this CI run, PHP 5.5 is using a different older libcrypto.so, as PHP 5.5 cannot build with openssl >=1.1.1.
# 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
php-linux-x64:
runs-on: ubuntu-latest