# [Discussion] Add Filter\Filter and Filter\Flag Enums to the Filter Extension

- Thread: https://externals.io/message/132783
- Original archive: https://news-web.php.net/php.internals/132783
- Started by Muhammed Arshid KV on 2026-10-05T03:29:30+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #132783 — Muhammed Arshid KV — 2026-10-05T03:29:30+00:00

URL: https://externals.io/message/132783#132783

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
