【问题标题】:php.ini error_reporting recommended production value would show notices?php.ini error_reporting 建议生成值会显示通知吗?
【发布时间】:2015-05-07 23:00:18
【问题描述】:

在服务器上仍然安装了 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是否会显示通知?我想我会 - 但我认为生产系统显示通知是没有意义的。

我错过了什么?

【问题讨论】:

    标签: php configuration server


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2019-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-10
      • 1970-01-01
      • 1970-01-01
      • 2014-08-23
      相关资源
      最近更新 更多