<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.apache.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.apache-child-terminate.php',
    1 => 'apache_child_terminate',
    2 => '在本次请求结束后终止 apache 子进程',
  ),
  'up' => 
  array (
    0 => 'ref.apache.php',
    1 => 'Apache 函数',
  ),
  'prev' => 
  array (
    0 => 'ref.apache.php',
    1 => 'Apache 函数',
  ),
  'next' => 
  array (
    0 => 'function.apache-get-modules.php',
    1 => 'apache_get_modules',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/apache/functions/apache-child-terminate.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.apache-child-terminate" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">apache_child_terminate</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">apache_child_terminate</span> &mdash; <span class="dc-title">在本次请求结束后终止 apache 子进程</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.apache-child-terminate-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>apache_child_terminate</strong></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>apache_child_terminate()</strong></span>
   将把运行当前 PHP 请求的 Apache 子进程注册为终止状态，一旦结束
   PHP 代码的运行此进程将终止。可以用在占用大量内存的脚本后面来终止该进程，因为通常内存只在内部释放而不会还给操作系统。
  </p>
  <p class="para">
    在 Apache 和 FastCGI 网页服务器中运行。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.apache-child-terminate-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.apache-child-terminate-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>

 
 <div class="refsect1 notes" id="refsect1-function.apache-child-terminate-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: <span class="simpara">此函数未在 Windows 平台下实现。</span></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.apache-child-terminate-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.exit.php" class="function" rel="rdfs-seeAlso">exit()</a> - 使用状态 code 或消息终止当前脚本</span></li>
   </ul>
  </p>
 </div>

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