Re: Re: cvs: php4 /ext/standard info.c
| From: | Markus Fischer | Date: | Thu, 29 Aug 2002 07:43:05 +0000 |
| Subject: | Re: Re: cvs: php4 /ext/standard info.c | ||
| References: | 1 2 3 4 5 6 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-87618@lists.php.net to get a copy of this message | ||
On Thu, Aug 29, 2002 at 10:34:05AM +0200, Timm Friebe wrote :
> On Thu, 2002-08-29 at 01:51, Yasuo Ohgaki wrote:
> > Marcus Börger wrote:
> > > Not that mod_apache delivering txt format info pages would be
> > > unusable but a simple phpinfo(0|1) would be better.
> > >
> >
> > I would like to see phpinfo(true|false)
>
> What about phpinfo(PHPINFO_OF_TEXT|PHPINFO_OF_HTML|...)
>
> This way, new output formats could be easily added.
It seems you all forgot about that phpinfo() already takes
one optional parameter ...
So this would be
phpinfo(INFO_ALL, INFO_HTML|INFO_PDF|INFO_WHATEVER);
It's "nice" (and definitely needed for php -i for cli) but if
it's worth to do has to be decided by the one who will
implement it ;-)
- Markus
--
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"Finally, if someone actually flying a plane is relying on
a freakin' webcam to land, we're all in trouble."
- A /. poster.