[php-src] PR #22908: Show curl option name in error message
| From: | Sjord | Date: | Tue, 28 Jul 2026 12:15:03 +0000 |
| Subject: | [php-src] PR #22908: Show curl option name in error message | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-37316@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22908
Author: Sjord
Retrieve the option name by using curl_easy_option_by_id or by walking zend_constants, depending on
whether the curl version used has curl_easy_option_by_id.
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.
Related to https://github.com/php/php-src/issues/10097,
https://github.com/php/php-src/pull/22705.