什么是phpinfo的error_reporting 22527中的22527 [英] What is 22527 in error_reporting 22527 of phpinfo

查看:150
本文介绍了什么是phpinfo的error_reporting 22527中的22527的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的本地开发环境中,我使用PHP版本5.3.3-1ubuntu9.2.

In my local dev env, I use PHP Version 5.3.3-1ubuntu9.2.

现在,当我看到error_reporting时,值为22527.

Now when I see error_reporting, the value is 22527.

什么是22527?

我检查了 http://www.php.net/manual/zh/errorfunc.constants.php ,但我找不到数字.

I checked http://www.php.net/manual/en/errorfunc.constants.php, but I could not find the number.

谁能告诉我这是什么吗?

Could anyone tell me what it is?

是否需要将其更改为E_ALL? E_STRICT吗?

Do I need to change it to E_ALL | E_STRICT ?

谢谢.

推荐答案

此值实际上是位图掩码,常量之和.

This value is actually bitmap mask, a sum of constants.

所以22527是

  16384 E_USER_DEPRECATED
+
  4096  E_RECOVERABLE_ERROR
+
  etc...

在您的情况下为E_ALL & ~E_DEPRECATED,它将显示除E_DEPRECATED以外的所有错误.

In your case it's E_ALL & ~E_DEPRECATED, it will display every error, except E_DEPRECATED.

低于5.4的PHP版本还将排除E_STRICT错误(因为该版本之前的E_ALL中未包含E_STRICT)

PHP versions below 5.4 will also exclude E_STRICT errors (since E_STRICT is not included in E_ALL before that version)

这篇关于什么是phpinfo的error_reporting 22527中的22527的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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