php-src/ext/filter
Ilija Tovilo c2fb10d2d2
Fix filter_var with callback and explicit REQUIRE_SCALAR
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
2023-09-14 11:48:40 +02:00
..
tests Fix filter_var with callback and explicit REQUIRE_SCALAR 2023-09-14 11:48:40 +02:00
callback_filter.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
config.m4 Normalize comments in *nix build system m4 files 2019-05-12 18:43:03 +02:00
config.w32 Remove unused Git attributes ident 2018-07-25 00:53:25 +02:00
CREDITS
filter_arginfo.h Add support for generating MAY_BE_ARRAY_OF_REF func info flag (#7416) 2021-08-30 13:50:34 +02:00
filter_private.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
filter.c Fix filter_var with callback and explicit REQUIRE_SCALAR 2023-09-14 11:48:40 +02:00
filter.stub.php Add support for generating MAY_BE_ARRAY_OF_REF func info flag (#7416) 2021-08-30 13:50:34 +02:00
logical_filters.c Merge branch 'PHP-8.0' into PHP-8.1 2022-03-28 10:54:05 -06:00
php_filter.h Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00
sanitizing_filters.c Update http->https in license (#6945) 2021-05-06 12:16:35 +02:00