-
Notifications
You must be signed in to change notification settings - Fork 8k
[RFC] FILTER_THROW_ON_FAILURE #18896
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFC] FILTER_THROW_ON_FAILURE #18896
Conversation
8c5abca to
86969e5
Compare
86969e5 to
10dab9e
Compare
|
LGTM fwiw. (I don't have access use the actual github review form on php-src, but it lgtm.) |
5e658f7 to
e16eb44
Compare
e16eb44 to
af6b103
Compare
|
Rebased for conflict from #19073 |
iluuu1994
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like we should have at least a simple successful test using FILTER_THROW_ON_FAILURE.
ext/filter/tests/throw-on-failure/filter_var_array_failure.phpt
Outdated
Show resolved
Hide resolved
Done |
a84affd to
0c5d337
Compare
…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)
https://wiki.php.net/rfc/filter_throw_on_failure