You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Some CURL constants could be not defined depending on libcurl version.
Thus private CurlHttpClient::validateExtraCurlOptions throws Undefined constant "CURLOPT_PINNEDPUBLICKEY" even though user code doesn't use this constant.
It's very hard to know what can and cannot be defined.
Please submit a PR adding the defined() checks if you have a setup that allows producing such an error.
There are already similar checks in the source, you can take inspiration from them.
Symfony version(s) affected: 5.3, 5.4
Description
Some CURL constants could be not defined depending on libcurl version.
Thus private
CurlHttpClient::validateExtraCurlOptions
throwsUndefined constant "CURLOPT_PINNEDPUBLICKEY"
even though user code doesn't use this constant.symfony/src/Symfony/Component/HttpClient/CurlHttpClient.php
Line 519 in 1fc489f
For example CURLOPT_PINNEDPUBLICKEY requires
libcurl 7.39.0
How to reproduce
You could try
Centos 7
withremi PHP
.Possible Solution
Check that constant is
defined(...)
or add polyfillThe text was updated successfully, but these errors were encountered: