Re: AW: [PEAR-DEV] Package proposal: HTTP_Status
| From: | Stefan Neufeind | Date: | Tue, 26 Aug 2003 09:42:52 +0000 |
| Subject: | Re: AW: [PEAR-DEV] Package proposal: HTTP_Status | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20525@lists.php.net to get a copy of this message | ||
On 26 Aug 2003 at 10:14, Stephan Schmidt wrote:
> > I've no idea what you would use it for :)
> I could use this in my HTTP_Server package.
>
> > I'd suggest someone does a status_codes.ini file and both (all?)
> > packages share it..
> As my HTTP_Server class is only parsed once and runs in an infinite
> loop (as it's a server...), performance is no issue for me. But if you
> need performance, the best solution would be to supply a serialized
> string, I think this parser would be even faster (but I haven't
> benchmarked it, either).
>
> Anyway, I'm +1 on this package, as it centralizes some method, which
> is something I like and I could use it in HTTP_Server. The code seems
> to be clean and well documented...
Agreed. From the current point of view I'd also rate it +1 since it
makes some php-code even a bit more readable (having isRedirection
etc. used everywhere).
Stefan