1
0
mirror of https://github.com/php/php-src.git synced 2026-04-06 23:53:30 +02:00
Files
archived-php-src/ext
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
..
2022-06-25 07:39:55 +01:00
2022-07-27 12:13:32 +02:00
2022-09-13 11:33:09 +01:00
2023-07-18 19:21:13 +02:00
2023-08-19 23:09:22 +01:00
2023-08-17 18:45:10 +01:00
2023-03-27 16:33:36 +02:00
2023-08-03 21:48:34 +02:00
2023-03-27 16:33:36 +02:00
2023-03-01 23:02:03 +01:00
2023-03-27 16:33:36 +02:00
2023-07-31 19:53:43 +01:00
2023-07-31 19:53:43 +01:00