#527 PHPwiki always tries to flush the output buffer

Matt Brown

PHPwiki attempts to always flush the PHP output buffer
on line 453 of Request.php, when output buffering is
not in use this results in an error being raised.

In conjunction with the problem reported in #1438439
this can result in Pragma: no-cache being set on every
page in the wiki even when it should be cachable.


  • Nobody/Anonymous

    Logged In: NO

    Please login.

  • Reini Urban

    Reini Urban - 2006-03-19

    Logged In: YES

    Sorry I don't understand that. Can you elaborate please?
    Which version?

    if (!empty($this->_dbi)) {

  • Matt Brown

    Matt Brown - 2006-03-23

    Logged In: YES

    Sorry, I must have a patch applied that has altered my line
    numbers. I mean the line

    while (@ob_end_flush()); // hmm. there's some error in redirect

    Which is two lines above the line you pasted. This call to
    ob_end_flush occurs regardless of whether buffering is in
    use, and causes errors to be raised. The @ suppresses them
    from being displayed, but it is still enough to trigger the
    error handler and set the no-cache header.

  • Reini Urban

    Reini Urban - 2006-04-16

    Logged In: YES

    I'm trying now:

            while (@ob_end_flush());
    } elseif (function_exists('ob_get_level') and

    @ob_get_level()) {
    while (@ob_end_flush());


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks