php-src/ext/exif
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 Normalize comments in *nix build system m4 files 2019-05-12 18:43:03 +02:00
config.w32 Sync leading and final newlines in source code files 2018-10-14 12:56:38 +02:00
CREDITS
exif_arginfo.h Add another round of missing parameter types to stubs 2020-08-07 16:48:45 +02:00
exif.c Make null byte error a ValueError 2020-09-08 15:23:23 +02:00
exif.stub.php Add another round of missing parameter types to stubs 2020-08-07 16:48:45 +02:00
php_exif.h Remove some unnecessary HAVE_EXTNAME guards 2020-09-07 11:05:07 +02:00