[GIT-PULLS] [php-src] PR #22662: Throw an error on null byte in curl array options

[email protected] (Sjord)
Newsgroups php.git-pulls
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.