A new posting on Jeff Moore's weblog today, he discusses some of the error handling issues that are in PHP currently. Also, he mentions the problems developers are having with the creation of error handling for PHP5 - resulting in a "paradigm change" for the community.
Wez Furlong has a proposal for structured errors in PHP. I like the idea of standard error codes. I don't much care for the exception_map or the superglobal part, though.
Following my API Design principles, I think the smallest amount of code wins. If exceptions can reduce the amount of code, then that is the best way to go. After all, error propagation code can have errors too. Code verbosity considered harmful.
Also of note on this same topic is this post from Alan Knowles' weblog. Many thanks to PHP Magazine for the link...




