Re: [PEPr] Comment on PEAR::PEAR_Delegator

From: Date: Wed, 23 Feb 2005 22:32:31 +0000
Subject: Re: [PEPr] Comment on PEAR::PEAR_Delegator
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-36375@lists.php.net to get a copy of this message
Hi, lingwitt@bellsouth.net schrieb:
I have updated the source, though the only breeches of standards I found were with curly braces. Let me know if I missed something. That's basically what I found as well. So this should be OK now.
I extend PEAR because there is no multiple inheritance. People would probably want to have a PEAR class as well as a delegator. Besides, it's logically pleasing to have one pure root class. Why would one want to extend PEAR? There are mainly two reasons:
1. Error Handling 2. No Destructors in PHP4 The first can be done using excepions or PEAR_ErrorStack (which is a lot more flexible) and the second is available in PHP5. I think, a lot of people will not use you package, if it's extending PEAR. Please think about this subject prior to your first release and take a look at the error handling RFC (http://pear.php.net/pepr/pepr-proposal-show.php?id=132) which defines that PHP5-only packages should use PEAR_Exception instead of PEAR_Error. Stephan -- http://www.php-tools.net http://www.schst.net http://pear.php.net

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