[PHP] Re: Best error handling

2009-02-27 Thread Nathan Rixham
Davi Ramos wrote: Hi. I have a kind of webserver that certain applications communicate with. The problem is that the script (named peer.php) must output data as xml. Thats ok (thanks to XMLWriter). The problem is that when some error occurs (those note catchable by set_error_handler) I have no

[PHP] Re: Best error handling

2009-02-27 Thread Davi Ramos
No luck with your solution... I think that the only way is (as you said) to make sure that there will be no fatal errors :) I'll will implement the error handler as well (to catch some minor errors) and uncaught exceptions. The method for catch all errors using a shutdown function appears to

Re: [PHP] Re: Best error handling

2009-02-27 Thread Michael A. Peters
Nathan Rixham wrote: further, for live servers you really should have display errors set to off in you're php.ini - at which point nothing will be returned but they are still in the server logs - so they are still viewable if you need to see what errors occur (just mentioning it because