| 148 |
lars |
1 |
\$error\_reporting {#variable.error.reporting}
|
|
|
2 |
==================
|
|
|
3 |
|
|
|
4 |
When this value is set to a non-null-value it\'s value is used as php\'s
|
|
|
5 |
[`error_reporting`](&url.php-manual;error_reporting) level inside of
|
|
|
6 |
[`display()`](#api.display) and [`fetch()`](#api.fetch).
|
|
|
7 |
|
|
|
8 |
Smarty 3.1.2 introduced the
|
|
|
9 |
[`muteExpectedErrors()`](#api.mute.expected.errors) function. Calling
|
|
|
10 |
`Smarty::muteExpectedErrors();` after setting up custom error handling
|
|
|
11 |
will ensure that warnings and notices (deliberately) produced by Smarty
|
|
|
12 |
will not be passed to other custom error handlers. If your error logs
|
|
|
13 |
are filling up with warnings regarding `filemtime()` or `unlink()`
|
|
|
14 |
calls, please enable Smarty\'s error muting.
|
|
|
15 |
|
|
|
16 |
See also [debugging](#chapter.debugging.console) and
|
|
|
17 |
[troubleshooting](#troubleshooting).
|