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.
–Daniel
On Sat, 5 Jul 2025, Daniel Scherzer 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: PHP: rfc:filter_throw_on_failure
* Implementation: [RFC] FILTER_THROW_ON_FAILURE by DanielEScherzer · Pull Request #18896 · php/php-src · GitHub
I think this is an excellent idea.
I left a review on the PR, with a suggestion to improve the exception
message (slightly):
master
← DanielEScherzer:filter-throw-on-failure
opened 11:10PM - 21 Jun 25 UTC
https://wiki.php.net/rfc/filter_throw_on_failure
cheers,
Derick
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.
–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