uTools-Manuals/docs/php/opcache_get_status.html
2019-04-08 23:22:26 +08:00

75 lines
2.5 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>获取缓存的状态信息</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.opcache-get-status" class="refentry">
<div class="refnamediv">
<h1 class="refname">opcache_get_status</h1>
<p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PECL ZendOpcache &gt; 7.0.2)</p><p class="refpurpose"><span class="refname">opcache_get_status</span> &mdash; <span class="dc-title">获取缓存的状态信息</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.opcache-get-status-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>opcache_get_status</strong></span>
([ <span class="methodparam"><span class="type">boolean</span> <code class="parameter">$get_scripts</code><span class="initializer"> = <strong><code>TRUE</code></strong></span></span>
] ) : <span class="type">array</span></div>
<p class="para rdfs-comment">
该函数将返回缓存实例的状态信息。
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.opcache-get-status-parameters">
<h3 class="title">参数</h3>
<dl>
<dt>
<code class="parameter">get_scripts</code></dt>
<dd>
<p class="para">
包含脚本的具体声明信息。
</p>
</dd>
</dl>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.opcache-get-status-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
返回一个数组,该数组可能包含有脚本具体的声明信息。
</p>
</div>
<div class="refsect1 errors" id="refsect1-function.opcache-get-status-errors">
<h3 class="title">错误/异常</h3>
<p class="para">
在启用了 <em>opcache.restrict_api</em> 的情况下,如果当前路径在禁止规则里,将会出现 E_WARNING ;不会返回任何状态信息。
</p>
</div>
<div class="refsect1 seealso" id="refsect1-function.opcache-get-status-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="opcache_get_configuration.html" class="function" rel="rdfs-seeAlso">opcache_get_configuration()</a> - 获取缓存的配置信息</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>