php.ini error_reporting推荐的生产值会显示通知吗?

时间:2015-03-06 10:43:55

标签: php configuration server

在服务器上仍然安装了PHP 5.3.3。 php.ini包含以下内容:

; Common Values:
;   E_ALL & ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)
;   E_ALL & ~E_NOTICE | E_STRICT  (Show all errors, except for notices)
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED
; http://www.php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
error_reporting = E_ALL & ~E_DEPRECATED

我想知道推荐用于生产环境的当前配置E_ALL & ~E_DEPRECATED是否会显示通知?我想我会 - 但我认为生产系统显示通知是没有意义的。

我错过了什么?

1 个答案:

答案 0 :(得分:0)

我想你想知道为什么所有的错误都会报告给大家。但这并不仅仅取决于error_reporting。缺少的是检查php.ini中的display_errors值。

相关问题