array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.opcache-get-status.php', 1 => 'opcache_get_status', ), 'up' => array ( 0 => 'ref.opcache.php', 1 => 'OPcache 函数', ), 'prev' => array ( 0 => 'function.opcache-get-configuration.php', 1 => 'opcache_get_configuration', ), 'next' => array ( 0 => 'function.opcache-invalidate.php', 1 => 'opcache_invalidate', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/opcache/functions/opcache-get-status.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL ZendOpcache > 7.0.2)
opcache_get_status — 获取缓存的状态信息
该函数将返回内存中缓存实例的状态信息。不会返回有关文件缓存的任何信息。
include_scripts
包含脚本的具体声明信息。
返回可能包含脚本特定状态信息的数组, 或者在失败时返回 false
。
在启用了 opcache.restrict_api
的情况下,如果当前路径在禁止规则里,将会出现 E_WARNING ;不会返回任何状态信息。