Skip to content

Commit

Permalink
Update test_2_extensions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Nov 14, 2023
1 parent d162074 commit f3139ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_2_extensions.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@
$extensions = [
'curl' => function_exists('curl_init')
// Make sure we are not using the default AL2 cURL version (7.79)
&& version_compare(curl_version()['version'], '7.84.0', '>='),
&& version_compare(curl_version()['version'], '8.4.0', '>='),
// https://github.com/brefphp/aws-lambda-layers/issues/42
'curl-http2' => defined('CURL_HTTP_VERSION_2'),
// Make sure we are not using the default AL2 OpenSSL version (7.79)
'curl-openssl' => str_starts_with(curl_version()['ssl_version'], 'OpenSSL/1.1.1') || str_starts_with(curl_version()['ssl_version'], 'OpenSSL/3.0'),
'curl-openssl' => str_starts_with(curl_version()['ssl_version'], 'OpenSSL/3.2'),
// Check that the default certificate file exists
// https://github.com/brefphp/aws-lambda-layers/issues/53
'curl-openssl-certificates' => file_exists(openssl_get_cert_locations()['default_cert_file']),
Expand Down

0 comments on commit f3139ef

Please sign in to comment.