Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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.net/manual/en/errorfunc.constants.php, but I could not find the number.

Could anyone tell me what it is?

Do I need to change it to E_ALL | E_STRICT ?

Thanks in advance.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
782 views
Welcome To Ask or Share your Answers For Others

1 Answer

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)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...