Re: Proposal: File_HtDigest
| From: | Mika Tuupola | Date: | Tue, 16 Sep 2003 18:09:42 +0000 |
| Subject: | Re: Proposal: File_HtDigest | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21586@lists.php.net to get a copy of this message | ||
On Tue, 16 Sep 2003, Michael Wallner wrote:
> > $htg = &new File_HtGroup('/non/existant/.htdigest', true);
>
> Thinking a while about this, I think the big question is:
> "Is even the directory there?"
>
> So it might be a good idea to return a PEAR_Error if the
> directory doesn't exist?
If you're talking about constructor, constructor
can't return anything else but instance of class
itself. (Or can, or atleast could in older versions
of PHP, but this is considered a bug and not a feature).
--
Mika Tuupola http://www.appelsiini.net/~tuupola/