[Discussion] Add Filter\Filter and Filter\Flag Enums to the Filter Extension
| From: | Muhammed Arshid KV | Date: | Mon, 05 Oct 2026 03:29:30 +0000 |
| Subject: | [Discussion] Add Filter\Filter and Filter\Flag Enums to the Filter Extension | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-132783@lists.php.net to get a copy of this message | ||
Hi internals,
I would like to start an RFC for adding *Filter\Filter* and *Filter\Flag*
backed enums to the *filter* extension.
The proposal adds type-safe and more discoverable alternatives to the
existing integer filter and flag constants.
The existing constants and integer arguments remain supported for backward
compatibility.
The implementation is available here:
https://github.com/php/php-src/pull/24111
I would appreciate feedback on the API, naming, and overall approach before
preparing the RFC.
Thanks,
Muhammed Arshid KV