What is 22527 in error_reporting 22527 of phpinfo

后端 未结 3 1443
深忆病人
深忆病人 2020-12-04 19:05

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

Now when I see error_reporting, the value is 22527.

What is 22527?

I checked http://www.php

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 19:56

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

    So, 22527 is

      16384 E_USER_DEPRECATED
    +
      4096  E_RECOVERABLE_ERROR
    +
      etc...
    

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

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

提交回复
热议问题