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
E_ALL & ~E_NOTICE
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.