Skip to content

Conversation

@Ayesh
Copy link
Contributor

@Ayesh Ayesh commented Nov 19, 2025

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.

…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)
@Ayesh Ayesh force-pushed the php85/filter-exceptions branch from 22c1d63 to fe39c79 Compare November 19, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant