显示异常提示的疑问

WBOY
Release: 2016-06-13 12:03:13
Original
949 people have browsed it

显示错误提示的疑问
lnmp环境,php.ini内display_errors = off
在代码内已有:

<br />ini_set('display_errors', 1);<br />error_reporting(E_ALL);<br />
Copy after login

但代码运行时依然没有error级别的报错提示(代码内已刻意写成语法错)。请问,环境是否能设置强制屏蔽错误提示呢?还是有其他可能性导致错误提示不输出?
------解决方案--------------------
程序文件中的
ini_set('display_errors', 1);
error_reporting(E_ALL);
只有在执行到的时候才会生效

那么在还没有执行到时就有错误呢?
php.ini内display_errors = off
错误不就没法显示了吗?

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!