Re: My Experience with PHP5 Error Handling (and possible solutions)

From: Date: Wed, 25 Aug 2004 06:11:04 +0000
Subject: Re: My Experience with PHP5 Error Handling (and possible solutions)
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32929@lists.php.net to get a copy of this message
Hi, Greg Beaver wrote:
Having said this, I still think using exceptions is going to be the long-term answer for php5. Making a clean break with php4 will simply hobble php5, however, as there are just no useful packages for it yet (by useful I mean packages that top the list of downloads at pear.php.net)
Let's look from a different angle: enforcing a PEAR_Error-like abomination will not add additional incentive for writing such php5 packages. The packages *will* undoubtedly appear, only the "BC-keeping" solution will leave us with either 2 transitional periods 1) transition from pure php4 to "backwards compatibility" (tm) 2) transition from "backwards compatibility" to pure php5 instead of one *or* useless cruft on all the packages for the foreseeable future. And PEAR which is now rightfully mocked for PEAR_Error will be mocked for whatever sh*t it will accept in place of it.

« previous php.pear.dev (#32929) next »