Re: Mail_IMAP 2.0.0 alpha 1
| From: | David Costa | Date: | Tue, 06 Jul 2004 08:45:47 +0000 |
| Subject: | Re: Mail_IMAP 2.0.0 alpha 1 | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31622@lists.php.net to get a copy of this message | ||
On Jul 6, 2004, at 10:36 AM, Klaus Guenther wrote:
David Costa wrote:I disagree. PHP 5 provides a good mechanism to handle the same notices via exceptions and PEAR_Exceptions is simple enough for every PHP 5 developer. I have no problem whatsoever with developers who might prefer to use ErrorStack but I would have a major problem to add yet another mechanism when PHP 5 already provides the right tool to achieve the same result.just jumping into this, I don't think we should force errorStack vs exceptions in PHP 5. Cheers David CostaThis was not my suggestion. For notices/warnings, ErrorStack is currently the best solution we have.
For errors/exceptions, we can use PEAR_Exception. I don't see a problem with enforcing the use of the two packages for their respective purposes. well for my PHP 5 package I would use something like:if (!count($this->database)) {
throw new PEAR_Exception(self::DB_SQLITE_TOOLS_NAR."$this->database", -1); }I don't really see why I would need to add something else on the top of the exception. Oh well, since ErrorStack is not PHP 5 ready I shouldn't worry too much about it within my package ;) Cheers David
Klaus