I'm able to upgrade the cURL binary and libs, however PHP still utilizes the old version.
I'm building on top of the official php:7.0-fpm
docker container.
First, I've upgraded cURL:
RUN curl -fsSL 'https://curl.haxx.se/download/curl-7.50.3.tar.gz' -o curl.tar.gz \
&& mkdir -p curl \
&& tar -xf curl.tar.gz -C curl --strip-components=1 \
&& rm curl.tar.gz \
&& ( \
cd curl \
&& make \
&& make install \
&& ldconfig \
) \
&& rm -r curl
I've tried:
Use
libtool
cd curl \ && ./buildconf \ && ./configure \ # ...
Re-install curl for PHP
RUN docker-php-ext-configure curl --with-curl=/usr/local/lib RUN docker-php-ext-install curl
But this throws the error/warning:
warning: curl (curl.so) is already loaded!
and eventually just ignores that I want to reinstall it.
- Several smaller random stuff
If possible, I'm looking for a solution that doesn't require a complete recompile of PHP.