Re: Re: Output Compression Issues
| From: | Troels Arvin | Date: | Thu, 16 Aug 2001 12:37:25 +0000 |
| Subject: | Re: Re: Output Compression Issues | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63423@lists.php.net to get a copy of this message | ||
On Thu, 16 Aug 2001 14:26:09 +0200, "Zeev Suraski" <zeev@zend.com> wrote:
> Can anybody think of good reasons not to send the content-length header
> in case we're performing output buffering?
Personally: No.
- However, the docs for the output handling system seems to indicate
that output buffering "filters" may be nested. I could imagine that this
will pose troubles if Content-Length headers are sent along in each
output buffering module(?):
http://www.php.net/manual/en/function.ob-start.php
Quoting:
Output buffers are stackable, that is, you may call ob_start() while
another ob_start() is active. Just make sure that you call
ob_end_flush() the appropriate number of times. If multiple output
callback functions are active, output is being filtered sequentially
through each of them in nesting order.
--
Greetings from Troels Arvin, Copenhagen, Denmark