Home  >  Article  >  Backend Development  >  PHP版本升级中遇到的一个坑

PHP版本升级中遇到的一个坑

WBOY
WBOYOriginal
2016-06-20 12:41:211326browse

php的版本到了php5.5.*之后,php.ini中定义的error_reporting也有了些许变化

在Php 5.3.*的时候 下面的配置即可将错误信息屏蔽掉

error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED

但是到了高版本,需要配置成如下的形式

error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT


error_reporting的定义和用法

http://www.w3school.com.cn/php/func_error_reporting.asp

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn