In PHP 5, the things covered by E_STRICT
are not covered by E_ALL
, so to get the most information, you need to combine them:
error_reporting(E_ALL | E_STRICT);
In PHP 5.4, E_STRICT
will be included in E_ALL
, so you can use just E_ALL
.
You can also use
error_reporting(-1);
which will always enable all errors. Which is more semantically correct as:
error_reporting(~0);
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…