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

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

WBOY
Release: 2016-06-20 12:41:21
Original
1384 people have browsed it

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

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

error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED
Copy after login

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

error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING & ~E_DEPRECATED & ~E_STRICT
Copy after login


error_reporting的定义和用法

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template