|
Too much text to read.
Why not make use of set_error_handler, and issue trigger_error instead? This issues its own stack, so you can easily track down the file, line, context, etc entirely from the error handler itself. Easy to convert and rethrow as an errorException when it comes time to convert to OO.
|