Files

22 lines
732 B
Markdown
Raw Permalink Normal View History

2021-12-03 11:59:22 +01:00
Smarty::muteExpectedErrors()
mutes expected warnings and notices deliberately generated by Smarty
Description
===========
string
muteExpectedErrors
muteExpectedErrors() registers a custom error handler using
2023-02-03 22:31:59 +01:00
[set\_error\_handler()](https://www.php.net/set_error_handler). The error
2021-12-03 11:59:22 +01:00
handler merely inspects `$errno` and `$errfile` to determine if the
given error was produced deliberately and must be ignored, or should be
passed on to the next error handler.
2023-08-08 00:04:14 +02:00
`\Smarty\Smarty::unmuteExpectedErrors()` removes the current error handler.
Please note, that if you\'ve registered any custom error handlers after
2021-12-03 11:59:22 +01:00
the muteExpectedErrors() call, the unmute will not remove Smarty\'s
muting error handler, but the one registered last.