Home  >  Article  >  Backend Development  >  在页面将报错级别设置为了E_ALL,报错也显示,但是致命异常就直接不报了,为什么

在页面将报错级别设置为了E_ALL,报错也显示,但是致命异常就直接不报了,为什么

WBOY
WBOYOriginal
2016-06-13 11:43:50927browse

在页面将报错级别设置为了E_ALL,报错也显示,但是致命错误就直接不报了,为什么

error_reporting(E_ALL);<br />ini_set('display_errors', 'On');<br />var_dump($a)

notice性质的错误能提示.
但是致命错误就直接不报了,为什么?(php.ini里面的display_errors = Off)
是因为我页面有错误,所以这个页面直接无法执行,所以设置的
error_reporting(E_ALL);<br />ini_set('display_errors', 'On');
都无法执行?但是代码不是从上往下执行么,不明白了.

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