Jan Ehrhardt in php.internals (Tue, 22 Oct 2019 15:04:20 +0200): >With at least bison 3.0 and re2c 3.14.1 installed this seens to >work with PHP 7.4.0RC4: > >#!/bin/sh >./configure \ >--with-config-file-scan-dir=/usr/local/lib/php.conf.d \ >--disable-all \ >--with-openssl-dir=/usr/local/ssl-1.1.1 \ >--with-openssl=/usr/local/ssl-1.1.1 \ >CFLAGS=" -I/usr/local/ssl-1.1.1/include " \ >OPENSSL_LIBS="-ldl -pthread -L/usr/local/ssl-1.1.1/lib -l:libssl.a >-l:libcrypto.a"
For PHP 7.2 and 7.3 you'll have to replace --with-openssl by --with-openssl=/usr/local/ssl-1.1.1 \ --with-openssl-dir=/usr/local/ssl-1.1.1 \ CFLAGS="-pthread -I/usr/local/ssl-1.1.1/include" \ OPENSSL_LIBS="-ldl -pthread -L/usr/local/ssl-1.1.1/lib -l:libssl.a -l:libcrypto.a" \ Note that the '-pthread' was added to the CFLAGS line as well, because it was stripped out of the OPENSSL_LIB definition. This was fixed by Nikita in PHP 7.4, but that fix was not backported to earlier versions. # /usr/local/php72/bin/php -i | grep OpenSSL SSL Version => OpenSSL/1.0.1e-fips OpenSSL support => enabled OpenSSL Library Version => OpenSSL 1.1.1d 10 Sep 2019 OpenSSL Header Version => OpenSSL 1.1.1d 10 Sep 2019 OpenSSL support => enabled The first line with 'OpenSSL/1.0.1e-fips' is what the curl extension reports. I will have to update that as well to OpenSSL 1.1.1 (static). -- Jan -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php