Вопрос

Делает error_reporting(0); Есть ли какое-либо влияние на регистрацию ошибок (для файла), или он просто подавляет отображение ошибки на экране?

Спасибо.

Это было полезно?

Решение

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.

Другие советы

It just suppresses displayed errors. Your ini settings for error logging determine logging levels.

PHP has pretty good docs, check out

http://us.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting for what it does,

http://us.php.net/manual/en/function.error-reporting.php for the runtime function

Its effects depend on where stderr is going.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top