hi
if i use this :
error_reporting(0);
$old_error_handler = set_error_handler("userErrorHandler"
(and i define a userErrorHandler function)
this send all errors to my function, and my function deals with it. Fine.
but i don't want E_NOTICE (8) errors to be reported - neither sent to my function, nor to the browser.
i tried error_reporting(!E_NOTICE); (hoping this would forward everything BUT E_NOTICE to my function, and it wouldn't forward it to the browser either, but it doesn't work as expected :-/)
if i use this :
error_reporting(0);
$old_error_handler = set_error_handler("userErrorHandler"
(and i define a userErrorHandler function)
this send all errors to my function, and my function deals with it. Fine.
but i don't want E_NOTICE (8) errors to be reported - neither sent to my function, nor to the browser.
i tried error_reporting(!E_NOTICE); (hoping this would forward everything BUT E_NOTICE to my function, and it wouldn't forward it to the browser either, but it doesn't work as expected :-/)