Re: Re: [PHP3] Re: [PHP-DEV] PHP output trapping support
| From: | Manuel Lemos | Date: | Tue, 18 May 1999 22:28:42 +0000 |
| Subject: | Re: Re: [PHP3] Re: [PHP-DEV] PHP output trapping support | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-5770@lists.php.net to get a copy of this message | ||
Hello Richard,
> >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?
>
> Keep in mind that only somebody who's trying to buffer stuff for a
> particular reason will get this, not your average beginner who just writes
> "hello world".
True.
> Such a person could easily use the error_log() function or roll their own
> similar function.
Yes, but the problematic situation that I am thinking of is about unexpected
errors and warnings like parser or run-time errors.
> Presumably it also wouldn't be too difficult for PHP to flush the buffers
> as it exits in the event that something went wrong...
Yes, although it is not trivial to do that when the developer has already
registered a shutdown handler. There´s one thing that could also be improved
in PHP: the ability to register and unregister multiple shutdown handlers.
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