Re: Re: RFC::Error Handling Guidelines for PHP5 packages

From: Date: Tue, 24 Aug 2004 17:18:26 +0000
Subject: Re: Re: RFC::Error Handling Guidelines for PHP5 packages
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-32902@lists.php.net to get a copy of this message
On Tue, 24 Aug 2004, Hans L wrote: > Yeah, but as mentioned your solution forgoes the benefits of exceptions. > > Agreed that the above code is ugly. There should be a method for PHP4 > and one for PHP5. You know, it's really not that hard to port these > packages to PHP5. For an internal project I've ported all of the Mail_* > applications to PHP5 + Exceptions, and it took less than an afternoon. > I don't know why people are so stuck on this issue of integrating PHP4 > code into PHP5 applications. I use lots of PEAR packages, but just make > them PHP5-only before using them. I look forward to when there will be > an infrastructure to support coexisting versions in PEAR. It's not the initial effort that's bad, but the constant maintenance if people need to keep both a PHP 4 and PHP 5 release going. - Stig

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