Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error handling ....

Status
Not open for further replies.

iza

Programmer
Apr 4, 2000
1,804
FR
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 :-/)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top