PHP 不显示任何类型的错误 [英] PHP doesn't show any kind of errors

查看:33
本文介绍了PHP 不显示任何类型的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在家里有一个 PHP 服务器用于开发.它正在运行:

I have a PHP server at home for development. It is running:

Ubuntu 9.10
Apache 2.2.12
PHP 5.3.2-0.dotdeb.1
MySql 5.0.7-dev

目前php.ini中显示错误的设置是:

Currently the settings in the php.ini for displayiong errors are:

display_errors = on
error_reporting = E_ALL

但是我在我的 php 脚本中没有看到任何错误.同样很奇怪的是 phpinfo() 向我展示了这个:

But I do not see any errors in my php script. Also very strange is that phpinfo() shows me this:

display_errors Off

我检查了 php.ini 文件,并多次重启 apache 服务器,但都没有成功.有人知道这怎么可能吗?

I checked the php.ini file, and restarted the apache server many times, but with no luck. Does anybody knows how this is possible?


当我本地设置时:

edit:
When I localy set this:

ini_set('display_errors', 'on');

我确实收到了错误.

推荐答案

display_errors 参数是否在 php.ini 文件中多次列出?如果它定义了多次,它的第二个实例将覆盖第一个.

Is the display_errors parameter listed more than once in your php.ini file? If its defined more than once, the second instance of it will override the first.

这篇关于PHP 不显示任何类型的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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