php / php-src

The PHP Interpreter
https://www.php.net
Other
37.77k stars 7.72k forks source link

php_curl does not work with IIS extended protection #14039

Open christophvw opened 3 months ago

christophvw commented 3 months ago

Description

Same issue described here: https://github.com/curl/curl/issues/12511

a workaround would be to use the Schannel Backend instead of OpenSSL: set CURL_SSL_BACKEND=schannel https://curl.se/libcurl/c/libcurl-env.html

But this does not work for precompiled php binaries as libcurl is statically linked.

https://support.microsoft.com/en-us/topic/description-of-the-update-that-implements-extended-protection-for-authentication-in-internet-information-services-iis-0efdf83b-2ae5-040c-5308-6cacf2e24b30?WT.mc_id=M365-MVP-6771

Would it be possible to add a php.ini setting to use a different curl backend? Or build php_curl with schannel backend on windows? see https://curl.se/libcurl/c/curl_global_sslset.html

PHP Version

PHP 8.3.6

Operating System

Windows 11

christophvw commented 3 months ago

https://github.com/Garethp/php-ews/issues/261

christophvw commented 3 months ago

https://github.com/curl/curl/pull/13098

cmb69 commented 1 month ago

See also https://github.com/winlibs/cURL/issues/13.