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

Wez Furlong's Blog:
Structured Errors in PHP
May 25, 2004 @ 12:40:52

On PHP Magazine's site today, there's a repost from Wez Furlong's weblog discussing Structured Errors in PHP.

Via Wez Furlong's blog - "We don't have them, yet, but we might in PHP 5.1. Here's a possible vision that will make both procedural and OO programmers happy. Before the vision, I'll summarize the main problems that need to be solved.

He presents three problems/issues with the current error reporting system such as the inflexibility of the current error messages, the scope limitation of the error message reported back, and the common problem of coders wanting to use exceptions for everything instead of a "more correct" message.

His solutions seem simple enough, but the real trick is to get them integrated somehow into the PHP source sometime soon.

tagged:

Link:


Trending Topics: