Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 6998

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>Allows control over disabled exit opcode</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.uopz-add-function.html">uopz_add_function</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.uopz-backup.html">uopz_backup</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-allow-exit" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">uopz_allow_exit</h1>
  <p class="verinfo">(PECL uopz 5)</p><p class="refpurpose"><span class="refname">uopz_allow_exit</span> &mdash; <span class="dc-title">Allows control over disabled exit opcode</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.uopz-allow-exit-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>uopz_allow_exit</strong></span>
    ( <span class="methodparam"><span class="type">bool</span> <code class="parameter">$allow</code></span>
   )</div>

  <p class="para rdfs-comment">
   By default uopz disables the exit opcode, so <span class="function"><a href="function.exit.html" class="function">exit()</a></span> calls
   are practically ignored. <span class="function"><strong>uopz_allow_exit()</strong></span>
   allows to control this behavior.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.uopz-allow-exit-parameters">
  <h3 class="title">Parameters</h3>
  <dl>

   
    <dt>
<code class="parameter">allow</code></dt>

    <dd>

     <p class="para">
      Whether to allow the execution of exit opcodes or not.
     </p>
    </dd>

   
  </dl>

 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.uopz-allow-exit-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   No value is returned.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.uopz-allow-exit-examples">
  <h3 class="title">Examples</h3>
  <div class="example" id="example-596">
   <p><strong>Example #1 <span class="function"><strong>uopz_allow_exit()</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">1</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #0000BB">1</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">uopz_allow_exit</span><span style="color: #007700">(</span><span style="color: #0000BB">true</span><span style="color: #007700">);<br />exit(</span><span style="color: #0000BB">2</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">;<br /></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>
1
</pre></div>
   </div>
  </div>
 </div>


 <div class="refsect1 notes" id="refsect1-function.uopz-allow-exit-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-allow-exit-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li class="member"><span class="function"><a href="function.uopz-get-exit-status.html" class="function" rel="rdfs-seeAlso">uopz_get_exit_status()</a> - Retrieve the last set exit status</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-add-function.html">uopz_add_function</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.uopz-backup.html">uopz_backup</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>