[php-src] PR #15126: ext/curl: libcurl `CURLOPT_{FTP_RESPONSE_TIMEOUT,ENCODING}` replacements

From: Date: Sat, 27 Jul 2024 14:22:35 +0000
Subject: [php-src] PR #15126: ext/curl: libcurl `CURLOPT_{FTP_RESPONSE_TIMEOUT,ENCODING}` replacements
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-27515@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/15126 Author: Ayesh In ext/curl, it declares CURLOPT_FTP_RESPONSE_TIMEOUT and CURLOPT_ENCODING constants although the corresponding libcurl constants are renamed. 1. CURLOPT_FTP_RESPONSE_TIMEOUT: [Renamed to CURLOPT_SERVER_RESPONSE_TIMEOUT](https://curl.se/libcurl/c/CURLOPT_SERVER_RESPONSE_TIMEOUT.html). We do not declare the replacement CURLOPT_SERVER_RESPONSE_TIMEOUT constant in ext/curl. 2. CURLOPT_ENCODING: [Renamed to CURLOPT_ACCEPT_ENCODING](https://curl.se/libcurl/c/CURLOPT_ACCEPT_ENCODING.html), and we _do_ declare CURLOPT_ACCEPT_ENCODING in ext/curl. This replaces the uses of CURLOPT_ENCODING and CURLOPT_FTP_RESPONSE_TIMEOUT constants in stub @cvalue declarations, and uses the replacement. Libcurl declares the old constants for backward compatibility, but now that we require libcurl 7.61 or later, we can safely use the new constants. The CURLOPT_FTP_RESPONSE_TIMEOUT constant seems to be never used in any applications, but CURLOPT_ENCODING is used fairly often. We could deprecate it to discourage the use of it, but I'd like to leave it for the future because there are more constants (such as CURLOPT_DNS_USE_GLOBAL_CACHE) that we can deprecate.

« previous php.git-pulls (#27515) next »