webasyst / webasyst-framework

Webasyst PHP Framework
http://www.webasyst.com/
GNU Lesser General Public License v3.0
290 stars 202 forks source link

Wrong curl option removal #335

Closed maxbin123 closed 3 months ago

maxbin123 commented 3 years ago

_CURLE_OPERATIONTIMEOUTED is an error constant, not a curl option: https://curl.se/libcurl/c/libcurl-errors.html

It was pointless and silent before, but in PHP 8+ it triggers an error:

PHP Fatal error: Uncaught ValueError: curl_setopt(): Argument #2 ($option) is not a valid cURL option