[英]PHP error_reporting is 0
On my windows laptop I have Apache and PHP so I can develop websites locally. 在Windows笔记本电脑上,我有Apache和PHP,因此可以在本地开发网站。 Then recently PHP files stopped reporting errors.
然后最近,PHP文件停止报告错误。 In the php.ini file I have set
在php.ini文件中,我已设置
error_reporting = E_ALL & E_STRICT;
display_errors = On
But it still does not report any errors. 但是它仍然不报告任何错误。 If I echo error_reporting() i get 0.
如果我echo error_reporting()我得到0。
What could be causing this problem? 是什么导致此问题?
Ok, that was stupid. 好吧,那太愚蠢了。 I obviously meant
E_ALL | E_STRICT
我显然是说
E_ALL | E_STRICT
E_ALL | E_STRICT
, which fixed the problem. E_ALL | E_STRICT
,它解决了该问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.