Source of: /manual/en/function.apache-child-terminate.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = 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 => 'en',
),
'this' =>
array (
0 => 'function.apache-child-terminate.php',
1 => 'apache_child_terminate',
),
'up' =>
array (
0 => 'ref.apache.php',
1 => 'Apache Functions',
),
'prev' =>
array (
0 => 'ref.apache.php',
1 => 'Apache Functions',
),
'next' =>
array (
0 => 'function.apache-get-modules.php',
1 => 'apache_get_modules',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.apache-child-terminate" class="refentry">
<div class="refnamediv">
<h1 class="refname">apache_child_terminate</h1>
<p class="verinfo">(PHP 4 >= 4.0.5, PHP 5)</p><p class="refpurpose"><span class="refname">apache_child_terminate</span> — <span class="dc-title">Terminate apache process after this request</span></p>
</div>
<a name="function.apache-child-terminate.description"></a><div class="refsect1 description">
<h3 class="title">Description</h3>
<div class="methodsynopsis dc-description">
<span class="type">bool</span> <span class="methodname"><b>apache_child_terminate</b></span>
( <span class="methodparam">void</span>
)</div>
<p class="para rdfs-comment">
<b>apache_child_terminate()</b> will register the
Apache process executing the current PHP request for termination
once execution of PHP code is completed. It may be used to
terminate a process after a script with high memory consumption has
been run as memory will usually only be freed internally but not
given back to the operating system.
</p>
</div>
<a name="function.apache-child-terminate.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns <b><tt class="constant">TRUE</tt></b> if PHP is running as an Apache 1 module, the Apache version
is non-multithreaded, and the
<a href="apache.configuration.php#ini.child-terminate" class="link">child_terminate</a> PHP directive is
enabled (disabled by default). If these conditions are not met, <b><tt class="constant">FALSE</tt></b> is
returned and an error of level <b><tt class="constant">E_WARNING</tt></b> is generated.
</p>
</div>
<a name="function.apache-child-terminate.notes"></a><div class="refsect1 notes">
<h3 class="title">Notes</h3>
<blockquote><p><b class="note">Note</b>: <span class="simpara">This function is not
implemented on Windows platforms.</span></p></blockquote>
</div>
<a name="function.apache-child-terminate.seealso"></a><div class="refsect1 seealso">
<h3 class="title">See Also</h3>
<p class="para">
</p><ul class="simplelist">
<li class="member"><a href="function.exit.php" class="function" rel="rdfs-seeAlso">exit()</a> - Output a message and terminate the current script</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>