Bug #78837 [Opn->Nab]: `--with-openssl=[DIR]` does not use [DIR]
| From: | cmb@php.net | Date: | Tue, 19 Nov 2019 15:30:21 +0000 |
| Subject: | Bug #78837 [Opn->Nab]: `--with-openssl=[DIR]` does not use [DIR] | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-223799@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=78837&edit=1
ID: 78837
Updated by: cmb@php.net
Reported by: pete at pragmatika dot net
Summary:
--with-openssl=[DIR] does not use [DIR]
-Status: Open
+Status: Not a bug
Type: Bug
Package: OpenSSL related
Operating System: Ubuntu 18.04 LTS
PHP Version: 7.4.0RC6
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
As of PHP 7.4.0, the configuration of OpenSSL relies on
pkg-config, and the --with-openssl option no longer supports a
DIR. See ./configure --help for further details.
Previous Comments:
------------------------------------------------------------------------
[2019-11-19 14:43:22] pete at pragmatika dot net
Description:
------------
PHP 7.4.0RC6 does not appear to respect --with-openssl=[DIR] at compile time.
I run an Ubuntu server with PHP 7.2.24, PHP 7.3.11 and PHP 7.4.0RC6, primarily alongside Nginx via
PHP-FPM. I compile PHP from source, and I bake in the latest OpenSSL (1.1.1d at the time of writing)
among other things.
PHP 7.2 and 7.3 respects --with-openssl=[DIR] at compile time, but PHP 7.4,0RC6 does
not. PHP 7.4.0RC6 uses the system-native version (1.1.1 at the time of writing).
Test script:
---------------
PHP 7.2 compile flags (working as expected):
https://gist.github.com/petecooper/3bcf1da07f54abdca285491e3b27330f
PHP 7.3 compile flags (working as expected):
https://gist.github.com/petecooper/17e7a19d0c9fd8c0442cce1e96e2d113
PHP 7.4.0RC6 compile flags (reverts to system-native OpenSSL):
https://gist.github.com/petecooper/7a0356402028f32073d17d1949191790
Headline details from php -i on PHP 7.2, PHP 7.3 and PHP 7.4.0RC6:
https://gist.github.com/petecooper/a115319bf010cedfe8e4b0128ac95212
OpenSSL details from php -i on PHP 7.2, PHP 7.3 and PHP 7.4.0RC6:
https://gist.github.com/petecooper/cb655cdae51884f8ebf74a679f79376d
Expected result:
----------------
I expect --with-openssl=[DIR] to respect the known-good OpenSSL library at the [DIR]
location.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=78837&edit=1