Numeric values of error reporting levels

后端 未结 6 666
孤独总比滥情好
孤独总比滥情好 2020-12-24 09:14

I\'m checking the configuration of my PHP server and I need to set the following parameter as follows:

error_reporting set to E_ALL & ~E_NOTICE

6条回答
  •  误落风尘
    2020-12-24 09:30

    error_reporting 6135 will not log Runtime Notices, So better to use

    error_reporting(E_ALL);
    

    followed by

    ini_set('display_errors', '0');
    

    This will log all errors including Runtime notices, But pevent displaying in browser. This can be used in any PHP versions.

提交回复
热议问题