Does error_reporting(0);
have any effect on error logging (to file), or does it just suppress on-screen error display?
Thanks.
Yes, it affects both.
The error_reporting level defines what levels of errors gets triggered. Whether you log or display those errors are determined by the other settings.
To summarize:
In essence, setting error_reporting(0)
means that you've turned off error reporting, and nothing will be logged to file or output to the screen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With