<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/outcontrol.user-level-output-buffers.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'outcontrol.buffer-size.php',
    1 => 'Buffer Size',
    2 => 'Buffer Size',
  ),
  'up' => 
  array (
    0 => 'outcontrol.user-level-output-buffers.php',
    1 => 'User-Level Output Buffers',
  ),
  'prev' => 
  array (
    0 => 'outcontrol.nesting-output-buffers.php',
    1 => 'Nesting Output Buffers',
  ),
  'next' => 
  array (
    0 => 'outcontrol.operations-on-buffers.php',
    1 => 'Operations Allowed On Buffers',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/outcontrol/user-level-output-buffers.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="outcontrol.buffer-size" class="section">
  <h2 class="title">Buffer Size</h2>
  <p class="para">
   Buffer sizes are expressed by integers
   and represent the number of bytes the buffer can store without flushing.
   When the size of output in the buffer exceeds the size of the buffer,
   the contents of the buffer are sent to the output handler,
   its return value is flushed and the buffer is cleared.
  </p>
  <p class="para">
   With the exception of <code class="literal">&quot;URL-Rewriter&quot;</code>,
   the size of output buffers can be set when the buffer is started.
   If set to <code class="literal">0</code>,
   the output buffer is only limited by the memory available to PHP.
   If set to <code class="literal">1</code>,
   the buffer is flushed after every block of code producing
   any non-zero length output.
  </p>
  <p class="para">
   The size of output buffers can be retrieved by calling
   <span class="function"><a href="function.ob-get-status.php" class="function">ob_get_status()</a></span>.
  </p>
  <p class="para">
   Output buffers started with <span class="function"><a href="function.ob-start.php" class="function">ob_start()</a></span>
   will have their buffer sizes set to the integer value passed to
   the function&#039;s second <code class="parameter">chunk_size</code> parameter.
   If omitted, it is set to <code class="literal">0</code>.
  </p>
  <p class="para">
   The output buffer started with
   <a href="outcontrol.configuration.php#ini.output-buffering" class="link">output_buffering</a>
   set to <code class="literal">&quot;On&quot;</code> will have its buffer size set to 0.
   If set to an integer than buffer size will correspond to that number.
  </p>
  <p class="para">
   <code class="literal">&quot;URL-Rewriter&quot;</code>&#039;s buffer size is set to <code class="literal">0</code>,
   therefore it is only limited by the memory available to PHP.
  </p>
  <p class="para">
   The size of <code class="literal">zlib</code>&#039;s output buffer is controlled by the
   <a href="zlib.configuration.php#ini.zlib.output-compression" class="link">zlib.output_compression</a>
   <var class="filename">php.ini</var> setting.
   If set to <code class="literal">&quot;On&quot;</code> the buffer size will be
   <code class="literal">&quot;16K&quot;</code>/<code class="literal">16384</code>.
   If set to an integer then buffer size will correspond to that number in bytes.
  </p>
 </div><?php manual_footer($setup); ?>