显示错误提示的疑问
lnmp环境,php.ini内display_errors = off
在代码内已有:
<br />ini_set('display_errors', 1);<br />error_reporting(E_ALL);<br />
但代码运行时依然没有error级别的报错提示(代码内已刻意写成语法错)。请问,环境是否能设置强制屏蔽错误提示呢?还是有其他可能性导致错误提示不输出?
------解决方案--------------------程序文件中的
ini_set('display_errors', 1);
error_reporting(E_ALL);
只有在执行到的时候才会生效
那么在还没有执行到时就有错误呢?
php.ini内display_errors = off
错误不就没法显示了吗?
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