RE: [PEAR-CVS] cvs: pear /Cache OutputCompression.php
| From: | Mika Tuupola | Date: | Thu, 25 Apr 2002 12:26:00 +0000 |
| Subject: | RE: [PEAR-CVS] cvs: pear /Cache OutputCompression.php | ||
| References: | 1 | Groups: | php.pear.cvs php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5796@lists.php.net to get a copy of this message | ||
On Thu, 25 Apr 2002, Christian Stocker wrote:
> > the message sent follows:
>
> I'm really really not happy about having a die() in the "middle" of a
> class.. We should either make a function printAndDieContent() or you do
> the die() by yourself in your code. But having this die within a method,
> will certainly confuse some people.
>
> What do others think about that?
IIRC somewhere in early times of PEAR there was discussion
about classes should never die() or exit(), which I must
say I agree.
--
Mika Tuupola http://www.appelsiini.net/~tuupola/