[php-src] PR #22705: Show curl option name in error message
| From: | Sjord | Date: | Sun, 12 Jul 2026 10:49:11 +0000 |
| Subject: | [php-src] PR #22705: Show curl option name in error message | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36984@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22705
Author: Sjord
Use curl_easy_option_by_id to retrieve the name of the option, and also show the name of the option
in the case where strings contain a null byte.
curl_easy_option_by_id simplifies the code, but was introduced in curl 7.73.0, so this also bumps
the minimum version of curl. 7.73.0 was released in 2020, so I think that's acceptable.
Showing the option name is especially useful when using curl_setopt_array. A user may specify many
options, and this change makes it clear which option is wrong exactly.