Bug #81276 [Opn]: Using curl/libcurl with NSS backend fails to load curl extension

From: Date: Wed, 21 Jul 2021 11:54:50 +0000
Subject: Bug #81276 [Opn]: Using curl/libcurl with NSS backend fails to load curl extension
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-235228@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81276&edit=1 ID: 81276 Updated by: nikic@php.net Reported by: 1001malac at gmail dot com Summary: Using curl/libcurl with NSS backend fails to load curl extension Status: Open Type: Bug Package: cURL related Operating System: Debian 10.10 PHP Version: 7.4.21 Block user comment: N Private report: N New Comment: Can you please run ldd /usr/bin/curl to confirm that you curl binary is linked against the same libcurl.so? The error message looks like your curl.so is borked. PHP doesn't particularly care whether your curl is linked against openssl, gnutls or nss. (We only specially handle using an old openssl version, but that should fail in a different way.) Previous Comments: ------------------------------------------------------------------------ [2021-07-21 00:06:59] 1001malac at gmail dot com Description: ------------ Hello! I'm using cURL 7.64.0 with the NSS SSL backend, instead of OpenSSL. The problem I'm facing is php complains whenever it has to load the curl extension: PHP Warning: PHP Startup: Unable to load dynamic library 'curl.so' (tried: /usr/lib/php/20190902/curl.so (/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by /usr/lib/php/20190902/curl.so)), /usr/lib/php/20190902/curl.so.so (/usr/lib/php/20190902/curl.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Is there any way to use php's curl extension without openssl dependencies baked in? Maybe selecting the SSL backend somehow as detailed in the following link? https://curl.se/libcurl/c/curl_global_sslset.html Thanks! # curl --version curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 NSS/3.42.1 zlib/1.2.11 brotli/1.0.7 libidn2/2.0.5 libpsl/0.20.2 (+libidn2/2.0.5) nghttp2/1.36.0 Release-Date: 2019-02-06 Protocols: file ftp ftps http https Features: AsynchDNS IDN IPv6 Largefile NTLM SSL libz brotli HTTP2 UnixSockets HTTPS-proxy PSL ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81276&edit=1

« previous php.bugs (#235228) next »