Uh oh!
There was an error while loading. Please reload this page.
[RFC] FILTER_THROW_ON_FAILURE - #18896
Conversation
8c5abca to
86969e5CompareUh oh!
There was an error while loading. Please reload this page.
86969e5 to
10dab9eCompareUh oh!
There was an error while loading. Please reload this page.
divinity76
commented
Jul 6, 2025
LGTM fwiw. (I don't have access use the actual github review form on php-src, but it lgtm.) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
5e658f7 to
e16eb44Comparee16eb44 to
af6b103CompareDanielEScherzer
commented
Aug 20, 2025
Rebased for conflict from #19073 |
iluuu1994
left a comment
There was a problem hiding this comment.
Seems like we should have at least a simple successful test using FILTER_THROW_ON_FAILURE.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
DanielEScherzer
commented
Aug 21, 2025
Done |
a84affd to
0c5d337CompareUh oh!
There was an error while loading. Please reload this page.
…xception` PHP 8.5 adds two new exception classes, along with the new `FILTER_THROW_ON_FAILURE` flag. We can not polyfill the exception behavior (which is activated with the `FILTER_THROW_ON_FAILURE` flag), but we can still polyfill the exception classes. - [RFC](https://wiki.php.net/rfc/filter_throw_on_failure) - [PR](php/php-src#18896) - [`Filter\FilterException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterException), [codex](https://php.watch/codex/Filter/FilterException) - [`Filter\FilterFailedException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterFailedException), [codex](https://php.watch/codex/Filter/FilterFailedException)
…xception` PHP 8.5 adds two new exception classes, along with the new `FILTER_THROW_ON_FAILURE` flag. We can not polyfill the exception behavior (which is activated with the `FILTER_THROW_ON_FAILURE` flag), but we can still polyfill the exception classes. - [RFC](https://wiki.php.net/rfc/filter_throw_on_failure) - [PR](php/php-src#18896) - [`Filter\FilterException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterException), [codex](https://php.watch/codex/Filter/FilterException) - [`Filter\FilterFailedException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterFailedException), [codex](https://php.watch/codex/Filter/FilterFailedException)
…xception` PHP 8.5 adds two new exception classes, along with the new `FILTER_THROW_ON_FAILURE` flag. We can not polyfill the exception behavior (which is activated with the `FILTER_THROW_ON_FAILURE` flag), but we can still polyfill the exception classes. - [RFC](https://wiki.php.net/rfc/filter_throw_on_failure) - [PR](php/php-src#18896) - [`Filter\FilterException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterException), [codex](https://php.watch/codex/Filter/FilterException) - [`Filter\FilterFailedException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterFailedException), [codex](https://php.watch/codex/Filter/FilterFailedException)
…xception` PHP 8.5 adds two new exception classes, along with the new `FILTER_THROW_ON_FAILURE` flag. We can not polyfill the exception behavior (which is activated with the `FILTER_THROW_ON_FAILURE` flag), but we can still polyfill the exception classes. - [RFC](https://wiki.php.net/rfc/filter_throw_on_failure) - [PR](php/php-src#18896) - [`Filter\FilterException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterException), [codex](https://php.watch/codex/Filter/FilterException) - [`Filter\FilterFailedException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterFailedException), [codex](https://php.watch/codex/Filter/FilterFailedException)
…FilterFailedException` (Ayesh) This PR was merged into the 1.x branch. Discussion ---------- [PHP 8.5] Add new `\Filter\FilterException` and `Filter\FilterFailedException` PHP 8.5 adds two new exception classes, along with the new `FILTER_THROW_ON_FAILURE` flag. We can not polyfill the exception behavior (which is activated with the `FILTER_THROW_ON_FAILURE` flag), but we can still polyfill the exception classes. - [RFC](https://wiki.php.net/rfc/filter_throw_on_failure) - [PR](php/php-src#18896) - [`Filter\FilterException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterException), [codex](https://php.watch/codex/Filter/FilterException) - [`Filter\FilterFailedException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterFailedException), [codex](https://php.watch/codex/Filter/FilterFailedException) Commits ------- 52a0cc6 [PHP 8.5] Add new `\Filter\FilterException` and `Filter\FilterFailedException`
…xception` PHP 8.5 adds two new exception classes, along with the new `FILTER_THROW_ON_FAILURE` flag. We can not polyfill the exception behavior (which is activated with the `FILTER_THROW_ON_FAILURE` flag), but we can still polyfill the exception classes. - [RFC](https://wiki.php.net/rfc/filter_throw_on_failure) - [PR](php/php-src#18896) - [`Filter\FilterException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterException), [codex](https://php.watch/codex/Filter/FilterException) - [`Filter\FilterFailedException`](https://php.watch/versions/8.5/filter-validation-throw-exception#FilterFailedException), [codex](https://php.watch/codex/Filter/FilterFailedException)
https://wiki.php.net/rfc/filter_throw_on_failure