Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 7007

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Retrieve the last set exit status</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.uopz-function.html">uopz_function</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.uopz-get-hook.html">uopz_get_hook</a></div>
 <div class="up"><a href="ref.uopz.html">Uopz Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.uopz-get-exit-status" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">uopz_get_exit_status</h1>
  <p class="verinfo">(PECL uopz 5)</p><p class="refpurpose"><span class="refname">uopz_get_exit_status</span> &mdash; <span class="dc-title">Retrieve the last set exit status</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.uopz-get-exit-status-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <span class="methodname"><strong>uopz_get_exit_status</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

  <p class="para rdfs-comment">
   Retrieves the last set exit status, i.e. the value passed to
   <span class="function"><a href="function.exit.html" class="function">exit()</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.uopz-get-exit-status-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.uopz-get-exit-status-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   This function returns the last exit status, or <strong><code>NULL</code></strong> if <span class="function"><a href="function.exit.html" class="function">exit()</a></span>
   has not been called.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.uopz-get-exit-status-examples">
  <h3 class="title">Examples</h3>
  <div class="example" id="example-607">
   <p><strong>Example #1 <span class="function"><strong>uopz_get_exit_status()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">exit(</span><span style="color: #0000BB">123</span><span style="color: #007700">);&nbsp;<br />echo&nbsp;</span><span style="color: #0000BB">uopz_get_exit_status</span><span style="color: #007700">();</span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>The above example will output:</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
123
</pre></div>
   </div>
  </div>
 </div>


 <div class="refsect1 notes" id="refsect1-function.uopz-get-exit-status-notes">
  <h3 class="title">Notes</h3>
  <div class="caution"><strong class="caution">Caution</strong>
   <p class="para">
    <a href="book.opcache.html" class="link">OPcache</a> optimizes away dead code after unconditional exit.
   </p>
  </div>
  <blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">Because this is a
language construct and not a function, it cannot be called using
<a href="functions.variable-functions.html" class="link">variable functions</a>.</span>
</p></blockquote>
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function
is not (yet) binary safe!</p></div>
  <blockquote class="note"><p><strong class="note">Note</strong>: <strong>register_globals: important
note</strong><br /><p class="para">As of PHP 4.2.0, the default value for the PHP directive
<a href="ini.core.html#ini.register-globals" class="link">register_globals</a> is <em class="emphasis">
off</em>. The PHP community discourages developers from relying on this directive, and encourages the use
of other means, such as the <a href="language.variables.predefined.html" class="link">superglobals</a>.</p></p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.uopz-get-exit-status-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member"><span class="function"><a href="function.uopz-allow-exit.html" class="function" rel="rdfs-seeAlso">uopz_allow_exit()</a> - Allows control over disabled exit opcode</span></li>
  </ul>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.uopz-function.html">uopz_function</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.uopz-get-hook.html">uopz_get_hook</a></div>
 <div class="up"><a href="ref.uopz.html">Uopz Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>