Re: output buffering

From: Date: Mon, 07 Oct 2002 09:55:19 +0000
Subject: Re: output buffering
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-89138@lists.php.net to get a copy of this message
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.");
Aha, ok, that actually makes quite a bit of sense. If there's a bit of output that remains inside the buffers, and the session module gets deactivated before this output is flushed, we're in trouble... I'll take a look at it. Zeev

« previous php.dev (#89138) next »