Re: output buffering
| From: | Zeev Suraski | Date: | Mon, 07 Oct 2002 15:07:45 +0000 |
| Subject: | Re: output buffering | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-89162@lists.php.net to get a copy of this message | ||
Can you see if calling php_end_ob_buffers() in the session deactivate function, in case BG(url_adapt_state_ex).active is true, solves this problems?
Zeev
At 12:24 07/10/2002, Sascha Schumann wrote:
A couple of questions for clarity: (a) Does this work properly with PHP 4.2?There is an even weirder bug, at least in the 4.2.3/CGI case (the session output handler gets called after the request shutdown which already disabled the session, so that the rewriter is not invoked).This bug can be circumvented by using ob_flush() which causes the output buffer to be emptied immediately.In HEAD, this yields:if (!OG(ob_nesting_level)) { php_error_docref("ref.outcontrol" TSRMLS_CC, E_NOTICE, "failed to flush buffer. No buffer to flush.");(b) Other than the buffering issue, does it perform what it's supposed to do (i.e., yields the right output)?The test case would not fail, if the output was correct. :-)- Sascha