<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/zlib.setup.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'zlib.configuration.php',
    1 => '运行时配置',
    2 => '运行时配置',
  ),
  'up' => 
  array (
    0 => 'zlib.setup.php',
    1 => '安装/配置',
  ),
  'prev' => 
  array (
    0 => 'zlib.installation.php',
    1 => '安装',
  ),
  'next' => 
  array (
    0 => 'zlib.resources.php',
    1 => '资源类型',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/zlib/ini.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="zlib.configuration" class="section">
 <h2 class="title">运行时配置</h2>
 <p class="simpara">
这些函数的行为受 <var class="filename">php.ini</var> 中的设置影响。
</p>
 <p class="para">
  The zlib extension offers the option to transparently compress
  your pages on-the-fly, if the requesting browser supports
  this. Therefore there are three options in the <a href="configuration.file.php" class="link">configuration file</a> <var class="filename">php.ini</var>.
   <table class="doctable table">
   <caption><strong>Zlib Configuration Options</strong></caption>
   
    <thead>
     <tr>
      <th>名字</th>
      <th>默认</th>
      <th>可修改范围</th>
      <th>更新日志</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td><a href="zlib.configuration.php#ini.zlib.output-compression" class="link">zlib.output_compression</a></td>
      <td>&quot;0&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="zlib.configuration.php#ini.zlib.output-compression-level" class="link">zlib.output_compression_level</a></td>
      <td>&quot;-1&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

     <tr>
      <td><a href="zlib.configuration.php#ini.zlib.output-handler" class="link">zlib.output_handler</a></td>
      <td>&quot;&quot;</td>
      <td><strong><code><a href="info.constants.php#constant.ini-all">INI_ALL</a></code></strong></td>
      <td class="empty">&nbsp;</td>
     </tr>

    </tbody>
   
  </table>

   有关 INI_* 样式的更多详情与定义，见 <a href="configuration.changes.modes.php" class="xref">配置可被设定范围</a>。
</p>
 
 <p class="para">这是配置指令的简短说明。</p>
 
 <p class="para">
 <dl>
  
   <dt id="ini.zlib.output-compression">
    <code class="parameter">zlib.output_compression</code>
    <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>/<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     Whether to transparently compress pages. If this option is set
     to &quot;On&quot; in <var class="filename">php.ini</var> or the Apache configuration, pages are
     compressed if the browser sends an &quot;Accept-Encoding: gzip&quot; or
     &quot;deflate&quot; header. &quot;Content-Encoding: gzip&quot; (respectively
     &quot;deflate&quot;) and &quot;Vary: Accept-Encoding&quot; headers are added to
     the output.
     In runtime, it can be set only before sending any output.
    </p>
    <p class="para">
     This option also accepts integer values instead of boolean
     &quot;On&quot;/&quot;Off&quot;, using this you can set the output buffer size
     (default is 4KB).
    </p>
    <blockquote class="note"><p><strong class="note">注意</strong>: 
     <p class="para">
      <a href="outcontrol.configuration.php#ini.output-handler" class="link">output_handler</a> must be 
      empty if this is set &#039;On&#039; ! Instead you must use <code class="literal">zlib.output_handler</code>.
     </p>
    </p></blockquote>
   </dd>
  

  
   <dt id="ini.zlib.output-compression-level">
    <code class="parameter">zlib.output_compression_level</code>
    <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
   </dt>
   <dd>
    <p class="para">
     Compression level used for transparent output compression. Specify a
     value between 0 (no compression) to 9 (most compression). The default
     value, -1, lets the server decide which level to use.
    </p>
   </dd>
  

  
   <dt id="ini.zlib.output-handler">
    <code class="parameter">zlib.output_handler</code>
    <span class="type"><a href="language.types.string.php" class="type string">string</a></span>
   </dt>
   <dd>
    <p class="para">
     You cannot specify additional output handlers if zlib.output_compression
     is activated here. This setting does the same as <a href="outcontrol.configuration.php#ini.output-handler" class="link">
     output_handler</a> but in a different order.
    </p>
   </dd>
  

 </dl>
 </p>
</div><?php manual_footer($setup); ?>