File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 4949 </simplelist >
5050 </sect2 >
5151
52+ <sect2 xml : id =" migration85.constants.filter" >
53+ <title >Filter</title >
54+
55+ <simplelist >
56+ <member >
57+ <constant >FILTER_THROW_ON_FAILURE</constant >
58+ </member >
59+ </simplelist >
60+ </sect2 >
61+
5262 <sect2 xml : id =" migration85.constants.intl" >
5363 <title >Intl</title >
5464
Original file line number Diff line number Diff line change 2020 <!-- RFC: https://wiki.php.net/rfc/curl_share_persistence_improvement -->
2121 </sect2 >
2222
23+ <sect2 xml : id =" migration85.new-classes.filter" >
24+ <title >Filter</title >
25+ <simplelist >
26+ <member ><classname >Filter\FilterException</classname ></member >
27+ <member ><classname >Filter\FilterFailedException</classname ></member >
28+ </simplelist >
29+ <!-- RFC: https://wiki.php.net/rfc/filter_throw_on_failure -->
30+ </sect2 >
31+
2332 <sect2 xml : id =" migration85.new-classes.uri" >
2433 <title >URI</title >
2534 <simplelist >
Original file line number Diff line number Diff line change @@ -285,6 +285,21 @@ print T1 . PHP_EOL; // Prints "0"
285285
286286 </sect2 >
287287
288+ <sect2 xml : id =" migration85.new-features.filter" >
289+ <title >Filter</title >
290+
291+ <simpara >
292+ Added new <constant >FILTER_THROW_ON_FAILURE</constant > flag which can be
293+ passed to the filter functions and will force an exception to be triggered
294+ when validation fails.
295+ The new flag cannot be combined with
296+ <constant >FILTER_NULL_ON_FAILURE</constant >; trying to do so will result
297+ in a <classname >ValueError</classname > being thrown.
298+ <!-- RFC: https://wiki.php.net/rfc/filter_throw_on_failure -->
299+ </simpara >
300+
301+ </sect2 >
302+
288303 <sect2 xml : id =" migration85.new-features.intl" >
289304 <title >Intl</title >
290305
You can’t perform that action at this time.
0 commit comments