laserlight wrote:Just to check: does that mean that the PHP manual's documentation was enough? If so, kindly mark this thread as resolved using the thread tools.
Nope, not enough. I'm hoping to get some opinions/feedback on php's custom error handling. The main thing that I need to know is if it can be trusted to report errors consistently, or will it fall back on the default handler under certain conditions other then the listed error types.
To be honest with you I'm cheating. I would prefer to leave the SAPI as simple as possible with this sort of thing since it is difficult passing varibles between PHP <-> C++ <-> Java. I'm hoping to write the majority of the error handling functions in PHP. Not only is it the easiest of the three, but thats where all the action is happening at the time of error so it just makes the most sense.
To clarify, my main questions are:
1) have you ever had issues with PHP falling back to the default handler other then over error types that happen at a level before user defined functions are invoked, or are severe enough that PHP cant continue. In other words, will user defined handlers handle some errors conditionally, or can you trust the user defined handler to handle these errors all the time.
2) are there any quirks to user defined error handling that I should be prepared to have to fix/work around
I'm looking mostly for error handling experiences and opinions. Ideas and links to useful information is cool too though.
One of the things that I'm thinking about doing is completely ditching error handling/reporting and leaving it to custom exception handlers. Would this be a bad idea? (again, looking for experiences and opinions)
Thanks,
Jason