php-src/ext/curl
Nikita Popov 7e339a335e Make null byte error a ValueError
Currently we treat paths with null bytes as a TypeError, which is
incorrect, and rather inconsistent, as we treat empty paths as
ValueError. We do this because the error is generated by zpp and
it's easier to always throw TypeError there.

This changes the zpp implementation to throw a TypeError only if
the type is actually wrong and throw ValueError for null bytes.
The error message is also split accordingly, to be more precise.

Closes GH-6094.
2020-09-08 15:23:23 +02:00
..
tests Make null byte error a ValueError 2020-09-08 15:23:23 +02:00
config.m4 Private/public split curl header 2020-09-07 11:12:41 +02:00
config.w32 Private/public split curl header 2020-09-07 11:12:41 +02:00
CREDITS
curl_arginfo.h Include stub hash in generated arginfo files 2020-06-24 09:55:19 +02:00
curl_file_arginfo.h Include stub hash in generated arginfo files 2020-06-24 09:55:19 +02:00
curl_file.c Private/public split curl header 2020-09-07 11:12:41 +02:00
curl_file.stub.php Fix UNKNOWN default values in ext/curl 2020-06-18 13:26:32 +02:00
curl_private.h Private/public split curl header 2020-09-07 11:12:41 +02:00
curl.stub.php Fix UNKNOWN default values in ext/curl 2020-06-18 13:26:32 +02:00
interface.c Make null byte error a ValueError 2020-09-08 15:23:23 +02:00
multi.c Private/public split curl header 2020-09-07 11:12:41 +02:00
php_curl.h Private/public split curl header 2020-09-07 11:12:41 +02:00
share.c Private/public split curl header 2020-09-07 11:12:41 +02:00
sync-constants.php Merge branch 'PHP-7.3' into PHP-7.4 2019-05-02 15:13:24 +02:00