Re: Proposal: File_HtDigest
| From: | Xavier Noguer | Date: | Tue, 16 Sep 2003 12:29:11 +0000 |
| Subject: | Re: Proposal: File_HtDigest | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-21551@lists.php.net to get a copy of this message | ||
Michael Wallner <m.wallner@iworks.at> escribió
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Xavier Noguer, you wrote:
>
> > Michael Wallner <m.wallner@iworks.at> escribió
>
> >>This class is for managing AuthDigestFiles as used
> >>for .htaccess Digest authentication.
>
> > Shouldn't setFile() return a PEAR_Error in case the file
> doesn't exist?
> > I know that means the constructor would have to be changed
> (possibly for
> > HtGroup also) making it less practical, but I prefer that to a
> silent error
>
> Hm, no I think.
>
> What if you want to genereate a new file?
In that case you are right. But if you do
$htg = &new File_HtGroup('/non/existant/.htdigest', true);
it will silently fail (just guessing, I haven't tested it)
Xavier