Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Derick Rethans' Blog:
E_RECOVERABLE
Aug 25, 2005 @ 10:30:35

Derick Rethans has a new post today with some information about a patch that he has written for PHP to create a E_RECOVERABLE error level.

Following my posting and the following discussion about "Type Hints throwing a fatal-non-catchable error when a wrong object is passed", I wrote up a patch that adds a new error level to PHP (6): E_RECOVERABLE. This error level can be used for cases where the engine decides that something is wrong, but when it doesn't end up in an unstable state.

For now the new error level E_RECOVERABLE is only implemented for type-hints, but lots of extensions are still using E_ERROR, when there is no need for it. They need updating to make those errors E_RECOVERABLE, or preferrably E_WARNING (or even E_NOTICE).

I'm not sure how much we need another error level, but I guess it can only help to narrow down the type of error without the coder having to dive in and dig around...

tagged:

Link:


Trending Topics: