# [RFC] [Discussion] FILTER_THROW_ON_FAILURE

- Thread: https://externals.io/message/127911
- Original archive: https://news-web.php.net/php.internals/127911
- Started by Daniel Scherzer on 2025-07-05T23:23:04+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #127911 — Daniel Scherzer — 2025-07-05T23:23:04+00:00

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

Hi internals,

I'd like to start the discussion for a new RFC about adding
a `FILTER_THROW_ON_FAILURE` flag to the filter extension.

* RFC: https://wiki.php.net/rfc/filter_throw_on_failure
* Implementation: https://github.com/php/php-src/pull/18896

--Daniel

---

## #128033 — Derick Rethans — 2025-07-14T12:44:07+00:00

URL: https://externals.io/message/127911#128033 · In reply to: #127911

> Hi internals,
> 
> I'd like to start the discussion for a new RFC about adding
> a `FILTER_THROW_ON_FAILURE` flag to the filter extension.
> 
> * RFC: https://wiki.php.net/rfc/filter_throw_on_failure
> * Implementation: https://github.com/php/php-src/pull/18896

I think this is an excellent idea.

I left a review on the PR, with a suggestion to improve the exception 
message (slightly): 
https://github.com/php/php-src/pull/18896/files#r2204824115

cheers,
Derick

---

## #128170 — Daniel Scherzer — 2025-07-21T21:37:18+00:00

URL: https://externals.io/message/127911#128170 · In reply to: #127911

On Sat, Jul 5, 2025 at 4:23 PM Daniel Scherzer <daniel.e.scherzer@gmail.com>
wrote:

> Hi internals,
>
> I'd like to start the discussion for a new RFC about adding
> a `FILTER_THROW_ON_FAILURE` flag to the filter extension.
>
> * RFC: https://wiki.php.net/rfc/filter_throw_on_failure
> * Implementation: https://github.com/php/php-src/pull/18896
>
> --Daniel
>

Given the lack of further feedback outside of discussing the exception
message, either here or on GitHub, I plan to open the vote in the next few
days.

-Daniel
