-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Fix, update and prettify cURL information: phpinfo()
and curl_version()
#17848
base: master
Are you sure you want to change the base?
Conversation
…L_VERSION_THREADSAFE`
…ay features as list (like for protocols)
…d**, **Hyper**, **GNU SASL**, **RTMP**)
- put back long: version_number & features - keep original key: feature_list
Thank you for the PR! I'm generally in favor of these changes, but we need to cater to BC, so ideally all tests should pass without needing to be modified. It might also make sense to explicitly check the changes against libcurl 7.61.0 which is the oldest version we're supporting (I presume that none of the CI jobs runs against such an old version). Minor issue: it might be reasonable to not introduce unrelated whitespace changes (these can be done in a separate PR, if at all). |
cc @Ayesh |
Thx @cmb69 for your feedback!
I'll have a look on what failed
Hmmmm... actually and out of my PR with php 8.4.4, libcurl 7.61.0 doesn't work
I does it for my change (only space after \n...) but as I saw some other few inconsistencies, I've just fixed them afterwards... but I can revert it if needed |
Thanks!
The code using
I, personally, would prefer if you revert the unrelated whitespace changes (keeps the diff a bit smaller, and more focused). But maybe wait a while what others think about that. |
... I just temporary commented part of Looking to the failing test, I would have to rollback Fix non-working condition with CURLVERSION_NOW using age 🔴 This is why all test #if defined(CURLVERSION_NOW)
#pragma message ("*** CURLVERSION_NOW defined")
#else
#pragma message ("*** CURLVERSION_NOW NOT defined")
#endif
#if defined(CURLVERSION_SECOND)
#pragma message ("*** CURLVERSION_SECOND defined")
#else
#pragma message ("*** CURLVERSION_SECOND NOT defined")
#endif
Does I missed something?? |
…eter of type 'const char *'
- remove ssl_version_number: not used anymore, always 0 https://github.com/curl/curl/blob/master/include/curl/curl.h#L3089 - ["ssl_version"] & ["libz_version"] moved to ["features_version"]["ssl"] & ["features_version"]["libz"]
❓ Would adding this to
|
While I don't find the hexadecimal numeric cURL version number not super readable, |
…ly enabled features are listed)
…n may / are different between OS)
Hi @cmb69 @adoy
|
CURLVERSION_NOW
usingage
feature_names
if available instead ofconst feats[]
and display features as list (like for protocols)const feats[]
withCURL_VERSION_CURLDEBUG
,CURL_VERSION_THREADSAFE
curl_version()
phpinfo()
before
after
curl_version()
before
after