[php-src] PR #22662: Throw an error on null byte in curl array options
| From: | Sjord | Date: | Fri, 10 Jul 2026 07:03:56 +0000 |
| Subject: | [php-src] PR #22662: Throw an error on null byte in curl array options | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-36943@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/22662
Author: Sjord
This is already done for string options in php_curl_option_str (see bug #68089). Similarly, array
arguments should also not contain null bytes, so we throw the same error for these.
This was extracted from https://github.com/php/php-src/pull/22651, as
this seems less controversial.
Using null bytes is clearly not supported and curl just throws away everything after the null byte,
so
https://wiki.php.net/rfc/policy-exempt-type-value-error-bc-policy
seems to apply here.