|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2018-05-30 01:56 UTC] peterkokot at gmail dot com
[2020-02-28 18:07 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2020-02-28 18:07 UTC] cmb@php.net
[2020-02-28 18:07 UTC] cmb@php.net
-Package: Compile Failure
+Package: cURL related
[2020-03-08 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 15:00:01 2025 UTC |
Description: ------------ Configure option --with-curl=PATH, the PATH will be ignored The system default cURL package is 7.42.1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ caprice:/ # /usr/bin/curl -V curl 7.42.1 (x86_64-suse-linux-gnu) libcurl/7.60.0 OpenSSL/1.0.2o zlib/1.2.8 nghttp2/1.32.0 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets Metalink I have installed cURL 7.60.0 at /usr/local ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ caprice:/ # /usr/local/bin/curl -V curl 7.60.0 (x86_64-pc-linux-gnu) libcurl/7.60.0 OpenSSL/1.0.2o zlib/1.2.8 nghttp2/1.32.0 Release-Date: 2018-05-16 Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp Features: AsynchDNS IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy If I configure the sources with "--with-curl=/usr/local" the 7.60.0 lib from "/usr/local" has been found: caprice:/ # CFLAGS="-I/usr/local/include" \ LDFLAGS="-L/usr/local/lib64" \ ./configure --with-curl=/usr/local checking for cURL support... yes checking for cURL 7.10.5 or greater... libcurl 7.60.0 ...but after the build the 7.42.1 was used: caprice:/ # /usr/local/php/7.1.17/bin/php --ri curl [...] cURL support => enabled cURL Information => 7.42.1 [...] I have copied "/usr/local/bin/curl-config" to "/usr/bin/curl-config" (which wasn't there before), but that doesn't changed something. The copy of "/usr/local/bin/curl-config" was using the correct pathes to 7.60.0. Only after a complete remove of "/usr/bin/curl", "/usr/bin/lib64/libcurl.so.4" and "/usr/bin/lib64/libcurl.so.4.3.0" and a rebuild I was getting the wanted executable: caprice:/ # /usr/local/php/7.1.17/bin/php --ri curl [...] cURL support => enabled cURL Information => 7.60.0 [...] I have just tested 7.0.30 and 5.6.36 and there is exact the same problem with "--with-curl=/usr/local" as described above (found 7.60.0 but uses 7.42.1 instead): caprice:/ # /usr/local/php/7.0.30/bin/php --ri curl [...] cURL support => enabled cURL Information => 7.42.1 [...] caprice:/ # /usr/local/php/5.6.36/bin/php --ri curl [...] cURL support => enabled cURL Information => 7.42.1 [...] ldconfig lists "libcurl.so.*" in "/usr/local/lib64": caprice:/ # /sbin/ldconfig -v /usr/local/lib64: [...] libcurl.so.4 -> libcurl.so.4.5.0 [...]