PHP7.2无法抑制错误日志中的NOTICE

时间:2018-02-27 19:24:01

标签: php error-handling

注意仍显示错误日志。

phpinfo()显示: error_reporting 22519

php-fpm.conf中的设置

pid = /run/php/php7.2-fpm.pid
error_log = /var/log/php7.2-error.log
rlimit_files = 131072
rlimit_core = 0
include = /etc/php/7.2/fpm/pool.d/*.conf

custom.ini中的设置

display_errors = Off
display_startup_errors = Off
error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT
error_log = syslog
expose_php = Off
log_errors = On
fastcgi.error_header = "HTTP/1.0 550 PHP Error"
fastcgi.logging = On

我错过了什么?谢谢你的帮助! :)

0 个答案:

没有答案