Re: Net_Vpopmaild
| From: | Justin Patrin | Date: | Fri, 13 Jul 2007 15:27:40 +0000 |
| Subject: | Re: Net_Vpopmaild | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47470@lists.php.net to get a copy of this message | ||
On 7/13/07, Bill Shupp <hostmaster@shupp.org> wrote:
Joe Stump wrote: 4.) PHP5 packages cannot use PEAR_Error and must use exceptions. Create Net_Vpopmail_Exception extending PEAR_Exception and throw that instead of PEAR_Error. 5.) I'm fairly sure Net_Socket and the Mail package you use are PHP4. PHP5 PEAR packages cannot rely on PHP4 packages per the RFC's. RE: #4, is that for raising errors only? And is there a PHP5 version of Net_Socket underway? Or would I need to make Net_Vpopmaild PHP4 compliant to release it as stable?Error handling in new packages must have their own exception class extended from PEAR_Exception and not use the PEAR class (PHP5 rules). As I mentioned in another e-mail a PHP5 package *may* depend on a PHP4 package if it is not stable but must be entirely PHP5 (including dependencies) when released as stable. PHP4 packages are no longer accepted. I'm not sure if there is a replacement Net_Socket in the works for PHP5, I have heard rumblings that it's no longer needed.... As for Mail it would be good to have a PHP5 version but AFAIK no one has one planned yet. Remember, not being stable isn't a huge problem, your package can still be used by people. ;-) -- Justin Patrin