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
However on my server a numeric value is set:
error_reporting 6135 6135
I was wondering what's the meaning of it, and if I really need to change it
thanks
E_ERROR. 1. A fatal run-time error, that can't be recovered from. The execution of the script is stopped immediately. E_WARNING.
PHP Warning: Include This warning tells you that an include file (included using PHP's include syntax) was not found. It is a warning rather than an error, because PHP will continue trying to load the page if it cannot find an include. In PHP, you can include files using include() or require() .
foreach(
array('E_ALL', 'E_NOTICE', '~E_NOTICE', 'E_ALL&~E_NOTICE')
as $s) {
eval("\$v=$s;");
printf("%20s = dec %10u = bin %32b\n", $s, $v, $v);
}
result
E_ALL = dec 6143 = bin 1011111111111
E_NOTICE = dec 8 = bin 1000
~E_NOTICE = dec 4294967287 = bin 11111111111111111111111111110111
E_ALL&~E_NOTICE = dec 6135 = bin 1011111110111
Values used for error reporting
E_RECOVERABLE_ERROR 4096 +
E_USER_NOTICE 1024 +
E_USER_WARNING 512 +
E_USER_ERROR 256 +
E_COMPILE_WARNING 128 +
E_COMPILE_ERROR 64 +
E_CORE_WARNING 32 +
E_CORE_ERROR 16 +
E_PARSE 4 +
E_WARNING 2 +
E_ERROR 1 +
= 6135
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With