Re: PHP output trapping support
| From: | Manuel Lemos | Date: | Sun, 16 May 1999 21:11:00 +0000 |
| Subject: | Re: PHP output trapping support | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-5722@lists.php.net to get a copy of this message | ||
Hello Zeev,
> > Anyway, I wonder is there is a way to output messages that are not
buffered
> > even if buffering was enabled so I can output things like error messages
> > without changing the current buffer. For instance, will PHP warnings be
> > buffered if buffering is enabled?
>
> Everything is buffered, and is done at a very low level of PHP (in fact,
> it belongs in a layer that connects PHP and the Web server). There are no
> special cases, and I don't intend to add any.
Right, but if you allow me I ask you to reconsider because of simple reason:
when the scripts enables buffering, all errors and warnings will never show
and the users will get the browser with messages like "Document contains no
data" which indeed mean that the script exited during buffering and an error
was outputted but it was buffered so it never showed and so the programmer
remained clueless. This means that you should expect an excess of needless
mailing list messages with programmers asking for help because they can´t
figure what´s the error. I don´t think this is any good to anybody.
If I may suggest something to avoid this very likely situation, it would be
great if you provided buffering or logging of PHP errors and warnings
messages may be with separate API. What do you think?
Regards,
Manuel Lemos
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net