Bug #79063 [Csd->Asn]: curl openssl does not respect PKG_CONFIG_PATH nor --with-openssl-dir
| From: | naox at yum dot pl | Date: | Mon, 06 Jan 2020 18:40:29 +0000 |
| Subject: | Bug #79063 [Csd->Asn]: curl openssl does not respect PKG_CONFIG_PATH nor --with-openssl-dir | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-224740@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79063&edit=1
ID: 79063
User updated by: naox at yum dot pl
Reported by: naox at yum dot pl
Summary: curl openssl does not respect PKG_CONFIG_PATH nor
--with-openssl-dir
-Status: Closed
+Status: Assigned
Type: Bug
Package: *Compile Issues
PHP Version: 7.4.1
Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
I've aplied your patch. I don't know what it does but it did not help. Everything
I've previously described remains valid. curl extension gets openssl from default openssl in OS
and not from version compiled into php openssl extension or version of openssl compiled into
libcurl.
Previous Comments:
------------------------------------------------------------------------
[2020-01-06 09:44:40] nikic@php.net
I've applied an additional change in https://github.com/php/php-src/commit/68f6ab711323678382d2746e57358d3f57a3446b
to avoid dealing with openssl in the first place if curl is linked against openssl 1.1.
------------------------------------------------------------------------
[2020-01-06 09:31:44] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b59f760472787bef78f9fc71eaa02f3cf056dff8
Log: Fix bug #79063: Curl openssl does not respect PKG_CONFIG_PATH
------------------------------------------------------------------------
[2020-01-04 14:50:00] naox at yum dot pl
Description:
------------
openssl compiled into curl extension does not respect PKG_CONFIG_PATH nor --with-openssl-dir during
compilation. Bug was not present before php 7.4. Now you can't have curl with openssl diffrent
than one on your OS.
openssl extension respects PKG_CONFIG_PATH and --with-openssl-dir during compilation, but openssl
compiled into curl extension does not. That means you can end up with diffrent openssl in those two
extensions.
you can check openssl version in both those extensions in phpinfo()
You might think that curl extension would have openssl version that is compiled into curl but
strangely no.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79063&edit=1