php.inierror_reporting推荐产值会显示告示?
php.ini error_reporting recommended production value would show notices?
服务器上仍然安装了 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
是否会显示通知?我想我会 - 但我认为生产系统显示通知没有意义。
我错过了什么?
我猜你想知道为什么所有错误都报告给每个人。但这不仅仅取决于error_reporting。缺少的是检查 php.ini.
中 display_errors 的值
服务器上仍然安装了 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
是否会显示通知?我想我会 - 但我认为生产系统显示通知没有意义。
我错过了什么?
我猜你想知道为什么所有错误都报告给每个人。但这不仅仅取决于error_reporting。缺少的是检查 php.ini.
中 display_errors 的值