mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-17 21:16:57 +08:00
98 lines
3.7 KiB
HTML
98 lines
3.7 KiB
HTML
<!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 class="docs"><div id="layout">
|
|
<div id="layout-content"><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> — <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">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>uopz_allow_exit</strong></span>
|
|
( <span class="methodparam"><span class="type">bool</span> <code class="parameter">$allow</code></span>
|
|
) : <span class="type"><span class="type void">void</span></span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
By default uopz disables the exit opcode, so <span class="function"><a href="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">参数</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">返回值</h3>
|
|
<p class="para">
|
|
没有返回值。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 examples" id="refsect1-function.uopz-allow-exit-examples">
|
|
<h3 class="title">范例</h3>
|
|
<div class="example" id="example-562">
|
|
<p><strong>Example #1 <span class="function"><strong>uopz_allow_exit()</strong></span> example</strong></p>
|
|
<div class="example-contents">
|
|
<div class="phpcode"><pre><span style="color: #000000">
|
|
<span style="color: #0000BB"><?php<br /></span><span style="color: #007700">exit(</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br />echo </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 </span><span style="color: #0000BB">2</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span>
|
|
</span>
|
|
</pre></div>
|
|
</div>
|
|
|
|
<div class="example-contents"><p>以上例程会输出:</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">注释</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>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 seealso" id="refsect1-function.uopz-allow-exit-seealso">
|
|
<h3 class="title">参见</h3>
|
|
<ul class="simplelist">
|
|
<li class="member"><span class="function"><a href="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></div></div></body></html> |