Re: Net_Vpopmaild

From: Date: Fri, 13 Jul 2007 16:02:30 +0000
Subject: Re: Net_Vpopmaild
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-47472@lists.php.net to get a copy of this message
Justin Patrin wrote: > 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. ;-) > Cool, thanks! And just to clarify, my extension of PEAR_Exception, Net_Vpopmaild_Exception, could optionally take a PEAR_Error object as an argument to the constructor (i.e. returned from Net_Socket), so that I may pass that error message when throwing an Exception? Would this be meet the PHP5 rules? That wasn't mentioned in the error handling guidelines that I could see. And of course, this would only be necessary during the pre-stable phase. Cheers, Bill

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