shivammathur / setup-php

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.

Home Page:https://setup-php.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP-5.5 with system libssl instead

TingDaoK opened this issue · comments

Describe the feature

Version

  • I have checked releases, and the feature is missing in the latest patch version of v2.

Underlying issue
The PHP-5.5 setup with an old OpenSSL. From php -i:

 openssl

OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.0.2n  7 Dec 2017
OpenSSL Header Version => OpenSSL 1.0.2u  20 Dec 2019

The log from Setup PHP shows:

Selecting previously unselected package libssl1.0.0:amd64.
Preparing to unpack .../libssl1.0.0_1.0.2n-1ubuntu5.7_amd64.deb ...
Unpacking libssl1.0.0:amd64 (1.0.2n-1ubuntu5.7) ...

Seems like it pulls an old libssl1.0.0_1.0.2n.

However github image ubuntu-lastest comes with libssl-dev | 3.0.2-0ubuntu1.8 as the default one in system.

Why build php-5.5 with the old 1.0.2 libssl instead of the one comes with the image?

Describe alternatives

Setup php5.5 with libssl 3.0.2 in the system.

Additional context

Are you willing to submit a PR?

No.

And all the versions >= 5.6 are using the default version 3.0.2

@TingDaoK
PHP 5.5 does not compile with OpenSSL 1.1 and definitely not with OpenSSL 3.
If you have a patch that adds support for newer versions of OpenSSL in PHP 5.5 and lower, please submit them here.