-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cURL version #5
Comments
Not sure this will be as simple as installing a later version of curl, as I believe PHP links to curl at compile time. However, it appears that it's linking to Install inside your container from city-fan (which is linked to from http://curl.haxx.se/ as providing a more current curl than is provided by RHEL 7 sources):
With this done, you'll be able to see the latest version available in PHP:
PHP still would not know about the new constants however, given it was compiled against the older version. You might try installing the later version something along the lines of the above, finding the numerical values for the two constants somewhere and declaring the constants yourself if not already declared and see if that works for you. |
@davidalger thank you for your findings. Good to know that it's possible to upgrade the cURL library, however I'd like to go for a more thorough solution. Would it be an option to create image variants based on centos:8, and perhaps, in a later stage based on rocky-linux? I'll do some testing to see if it's as easy as switching the base image and changing the added repos. |
With latest images built with EL 8 base, these curl flags are now available:
Curl library version is now 7.61.1 vs 7.29.0 as it was with EL 7 base images:
|
First of all: thank you for all your great work on Warden! I love the solution you've built :).
I'm running into some problems caused by missing cURL constants:
(shell created from
docker run -it davidalger/php:7.4 /bin/bash
)CURLHEADER_SEPARATE
was introduced in cURL version 7.37.0.CURLINFO_SCHEME
was introduced in cURL version 7.52.0.CentOS 7.9 has cURL version 7.29.0 (dated from 2013).
I'm not sure if I'm in a very rare use case, but do you see any possibilities?
Willing to collaborate!
The text was updated successfully, but these errors were encountered: