<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.opcache.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.opcache-get-configuration.php',
    1 => 'opcache_get_configuration',
    2 => '获取缓存的配置信息',
  ),
  'up' => 
  array (
    0 => 'ref.opcache.php',
    1 => 'OPcache 函数',
  ),
  'prev' => 
  array (
    0 => 'function.opcache-compile-file.php',
    1 => 'opcache_compile_file',
  ),
  'next' => 
  array (
    0 => 'function.opcache-get-status.php',
    1 => 'opcache_get_status',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/opcache/functions/opcache-get-configuration.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.opcache-get-configuration" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">opcache_get_configuration</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.5.0, PHP 7, PHP 8, PECL ZendOpcache &gt; 7.0.2)</p><p class="refpurpose"><span class="refname">opcache_get_configuration</span> &mdash; <span class="dc-title">获取缓存的配置信息</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.opcache-get-configuration-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>opcache_get_configuration</strong></span>(): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">
   该函数将返回缓存实例的配置信息。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.opcache-get-configuration-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.opcache-get-configuration-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   返回一个数组，该数组里包含了缓存的初始化信息，黑名单和版本号。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.opcache-get-configuration-errors">
  <h3 class="title">错误／异常</h3>
  <p class="simpara">
   在启用了 <code class="literal">opcache.restrict_api</code> 的情况下，如果当前路径在禁止规则里，将会出现 E_WARNING ；不会返回任何状态信息。
  </p>
 </div>


  <div class="refsect1 seealso" id="refsect1-function.opcache-get-configuration-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.opcache-get-status.php" class="function" rel="rdfs-seeAlso">opcache_get_status()</a> - 获取缓存的状态信息</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>