On Mon, 22 Aug 2005, George Schlossnagle wrote:
I'm talking about allowing type hints to be trappable by users, without
complicating them with exceptions. I'm proposing a new error level,
which
behaves like E_ERROR, except it can be caught using a userland error
handler, for those cases where the engine/PHP are in a stable state.
This sounds good to me. We talked about this briefly a year or so ago, in
reference to being able to convert E_ERROR errors to exceptions in an
extension.
Right, my current patch allows you do to that for the new "E_CATCHABLE"
error. I don't like the name though, so we need to come up with a better
one (sorry Zeev :) .
E_CATCHABLE is definitely not good since it should be clear that it's otherwise a fatal error. I'm all for finding something more, well, catchy than E_CATCHABLE_ERROR, but if worse comes to worst...
Zeev