Source of: /manual/en/function.pcntl-wifexited.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pcntl.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'function.pcntl-wifexited.php',
1 => 'pcntl_wifexited',
),
'up' =>
array (
0 => 'ref.pcntl.php',
1 => 'PCNTL Functions',
),
'prev' =>
array (
0 => 'function.pcntl-wexitstatus.php',
1 => 'pcntl_wexitstatus',
),
'next' =>
array (
0 => 'function.pcntl-wifsignaled.php',
1 => 'pcntl_wifsignaled',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div id="function.pcntl-wifexited" class="refentry">
<div class="refnamediv">
<h1 class="refname">pcntl_wifexited</h1>
<p class="verinfo">(PHP 4 >= 4.1.0, PHP 5)</p><p class="refpurpose"><span class="refname">pcntl_wifexited</span> — <span class="dc-title">Checks if status code represents a normal exit</span></p>
</div>
<a name="function.pcntl-wifexited.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>pcntl_wifexited</b></span>
( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$status</tt></span>
)</div>
<p class="para rdfs-comment">
Checks whether the child status code represents a normal exit.
</p>
</div>
<a name="function.pcntl-wifexited.parameters"></a><div class="refsect1 parameters">
<h3 class="title">Parameters</h3>
<p class="para">
</p><dl>
<dt class="varlistentry">
<span class="term"><i><tt class="parameter">status</tt></i>
</span>
</dt><dd class="listitem">
<p class="para">The <i><tt class="parameter">status</tt></i>
parameter is the status parameter supplied to a successful
call to <a href="function.pcntl-waitpid.php" class="function">pcntl_waitpid()</a>.</p>
</dd>
</dl>
<p>
</p>
</div>
<a name="function.pcntl-wifexited.returnvalues"></a><div class="refsect1 returnvalues">
<h3 class="title">Return Values</h3>
<p class="para">
Returns <b><tt class="constant">TRUE</tt></b> if the child status code represents a normal exit, <b><tt class="constant">FALSE</tt></b>
otherwise.
</p>
</div>
<a name="function.pcntl-wifexited.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.pcntl-waitpid.php" class="function" rel="rdfs-seeAlso">pcntl_waitpid()</a> - Waits on or returns the status of a forked child</li>
<li class="member"><a href="function.pcntl-wexitstatus.php" class="function" rel="rdfs-seeAlso">pcntl_wexitstatus()</a> - Returns the return code of a terminated child</li>
</ul><p>
</p>
</div>
</div><?php manual_footer(); ?>