<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.outcontrol.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'outcontrol.constants.php',
    1 => '定義済み定数',
    2 => '定義済み定数',
  ),
  'up' => 
  array (
    0 => 'book.outcontrol.php',
    1 => '出力制御',
  ),
  'prev' => 
  array (
    0 => 'outcontrol.configuration.php',
    1 => '実行時設定',
  ),
  'next' => 
  array (
    0 => 'outcontrol.output-buffering.php',
    1 => '出力バッファリング',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/outcontrol/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="outcontrol.constants" class="appendix">
 <h1 class="title">定義済み定数</h1>

 <p class="simpara">
以下の定数は、PHP コアに含まれており、常に利用可能です。
</p>
 <dl id="outcontrol.constants.flags-passed-to-handler">
  <strong class="title">出力ハンドラに渡されるステータスフラグ</strong>
  <p class="para">
   以下のフラグは、<span class="function"><a href="function.ob-start.php" class="function">ob_start()</a></span>
   によってセットされる出力ハンドラの2番目の引数(<code class="parameter">phase</code>) 
   に、ビットマスクの一部として渡されます。
  </p>
  
   <dt id="constant.php-output-handler-start">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-start">PHP_OUTPUT_HANDLER_START</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     出力バッファリングが始まったことを表します。
    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-write">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-write">PHP_OUTPUT_HANDLER_WRITE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     出力バッファがフラッシュされ、データが出力されたことを表します。
    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-flush">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-flush">PHP_OUTPUT_HANDLER_FLUSH</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     バッファがフラッシュされたことを表します。
    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-clean">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-clean">PHP_OUTPUT_HANDLER_CLEAN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     出力バッファが消去されたことを表します。
    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-final">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-final">PHP_OUTPUT_HANDLER_FINAL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     出力バッファリングの最終操作であることを表します。
    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-cont">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-cont">PHP_OUTPUT_HANDLER_CONT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     バッファはフラッシュされたけれども、出力バッファリングはまだ続くことを表します。
    </p>
    <p class="para">
     これは
     <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-write">PHP_OUTPUT_HANDLER_WRITE</a></code></strong>
     のエイリアスです。
    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-end">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-end">PHP_OUTPUT_HANDLER_END</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     出力バッファリングが終わったことを表します。
    </p>
    <p class="para">
     これは
     <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-final">PHP_OUTPUT_HANDLER_FINAL</a></code></strong>
     のエイリアスです。
    </p>
   </dd>
  
 </dl>
 <dl id="outcontrol.constants.buffer-control-flags">
  <strong class="title">出力バッファの制御フラグ</strong>
  <p class="para">
   以下のフラグは、<span class="function"><a href="function.ob-start.php" class="function">ob_start()</a></span>
   によってセットされる出力ハンドラの3番目の引数(<code class="parameter">flags</code>) 
   に、ビットマスクの一部として渡されます。
  </p>
  
   <dt id="constant.php-output-handler-cleanable">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-cleanable">PHP_OUTPUT_HANDLER_CLEANABLE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     <span class="function"><a href="function.ob-start.php" class="function">ob_start()</a></span> が作る出力バッファを、
     <span class="function"><a href="function.ob-clean.php" class="function">ob_clean()</a></span> がクリーンできるかどうかを設定します。
     このフラグは、<span class="function"><a href="function.ob-end-clean.php" class="function">ob_end_clean()</a></span> や
     <span class="function"><a href="function.ob-get-clean.php" class="function">ob_get_clean()</a></span> の振る舞いは制御しません。
    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-flushable">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-flushable">PHP_OUTPUT_HANDLER_FLUSHABLE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     <span class="function"><a href="function.ob-start.php" class="function">ob_start()</a></span> が作る出力バッファを、
     <span class="function"><a href="function.ob-flush.php" class="function">ob_flush()</a></span> がフラッシュできるかどうかを設定します。
     このフラグは、<span class="function"><a href="function.ob-end-flush.php" class="function">ob_end_flush()</a></span> や
     <span class="function"><a href="function.ob-get-flush.php" class="function">ob_get_flush()</a></span> の振る舞いは制御しません。

    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-removable">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-removable">PHP_OUTPUT_HANDLER_REMOVABLE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     <span class="function"><a href="function.ob-start.php" class="function">ob_start()</a></span> が作る出力バッファを、
     スクリプトの終了前や
     <span class="function"><a href="function.ob-end-clean.php" class="function">ob_end_clean()</a></span>, <span class="function"><a href="function.ob-end-flush.php" class="function">ob_end_flush()</a></span>,
     <span class="function"><a href="function.ob-get-clean.php" class="function">ob_get_clean()</a></span>, <span class="function"><a href="function.ob-get-flush.php" class="function">ob_get_flush()</a></span>
     をコールしたときに削除できるかを設定します。
    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-stdflags">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-stdflags">PHP_OUTPUT_HANDLER_STDFLAGS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     出力バッファのフラグのデフォルト設定。
     <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-cleanable">PHP_OUTPUT_HANDLER_CLEANABLE</a></code></strong> |
     <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-flushable">PHP_OUTPUT_HANDLER_FLUSHABLE</a></code></strong> |
     <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-removable">PHP_OUTPUT_HANDLER_REMOVABLE</a></code></strong> と同等です。
    </p>
   </dd>
  
 </dl>
 <dl id="outcontrol.constants.flags-returned-by-handler">
  <strong class="title">出力ハンドラのステータスフラグ</strong>
  <p class="para">
   以下のフラグは、
   <span class="function"><a href="function.ob-get-status.php" class="function">ob_get_status()</a></span> が返す
   ビットマスク <code class="literal">flags</code> の一部です:
  </p>
  
   <dt id="constant.php-output-handler-started">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-started">PHP_OUTPUT_HANDLER_STARTED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     出力ハンドラがコールされたことを示します。
    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-disabled">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-disabled">PHP_OUTPUT_HANDLER_DISABLED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     出力ハンドラが無効になっていることを示します。
     このフラグは、出力ハンドラが <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返したときや
     バッファの処理が失敗したときに設定されます。
     PHP 8.4.0 より前のバージョンでは、
     出力バッファを開始するときにもこのフラグを設定できました。
    </p>
   </dd>
  
  
   <dt id="constant.php-output-handler-processed">
    <strong><code><a href="outcontrol.constants.php#constant.php-output-handler-processed">PHP_OUTPUT_HANDLER_PROCESSED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <p class="para">
     出力ハンドラがバッファの処理に成功したことを示します。
     PHP 8.4.0 以降で利用可能です。
    </p>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>