mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
c2fb10d2d2
For some reason, FILTER_CALLBACK disables the FILTER_REQUIRE_SCALAR flag that is normally set by default. While surprising, this is not something we can change. However, even specifying FILTER_REQUIRE_SCALAR explicitly does not corrently set this flag. This is because FILTER_CALLBACK zeroes the flags after they have been populated from the parameters. We reverse the checks to make explicitly specifying the flag behave as expected. Closes GH-12203 |
||
---|---|---|
.. | ||
tests | ||
callback_filter.c | ||
config.m4 | ||
config.w32 | ||
CREDITS | ||
filter_arginfo.h | ||
filter_private.h | ||
filter.c | ||
filter.stub.php | ||
logical_filters.c | ||
php_filter.h | ||
sanitizing_filters.c |