PHP错误报告停止工作 [英] PHP Error Reporting stopped working

查看:213
本文介绍了PHP错误报告停止工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能是什么原因,我的PHP错误报告将停止显示的浏览器?我一定是什么地方改变了一些东西,但我的生活我不能看着办吧。

What are the possible reasons that my php error reporting would stop displaying to the browser? I must have changed something somewhere, but for the life of me I cant figure it out.

我已经把error_reporting设置在PHP脚本E_ALL,似乎没有在我的php.ini或任何的.htaccess将无法显示以及被停止任何事情。

I have error_reporting set to E_ALL in a php script, doesnt seem to be anything in my php.ini or .htaccess that would be stopping it from displaying as well.

还有什么地方可以这样发生的?

Where else can this be happening?

推荐答案

也有可能被禁用的display_errors http://php.net/manual/en/errorfunc.configuration.php

ini_set("display_errors", 1);
error_reporting(E_ALL);

或者以此作为解决方法测试,如果任何错误会来:

Or use this as workaround for testing if any errors would come up:

set_error_handler("var_dump");

这篇关于PHP错误报告停止工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆