On Mon, 5 Oct 2026 at 19:01, Derick Rethans <[email protected]> wrote:

> I will reiterate that removing these defaults was a mistake. The
> intention of the filter extension was to pre-clean **all** data coming
> into the superglobals through these filters, and then access the raw
> (but checked/filtered) data through the extensions filter_get() and
> friends methods.
>
> Removing these defaults cripled the extension.
>
> If anything, that deprecation ought to be undone, before the extension
> gets refreshed.


Thank you for explaining this. I understand your concern, and I appreciate
the historical context.

My intention with the proposed enums in
https://github.com/php/php-src/pull/24111 was only to modernize the API and
make filter usage more explicit, rather than to further weaken the
extension’s original purpose.

I’ll take a closer look at the history and rationale behind the removal of
the defaults before proceeding. If the deprecation should be reconsidered
as part of refreshing the filter extension, I agree that this is worth
discussing first.

Reply via email to