<!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>Get status information about the cache</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.opcache-get-configuration.html">opcache_get_configuration</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.opcache-invalidate.html">opcache_invalidate</a></div> <div class="up"><a href="ref.opcache.html">OPcache Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.opcache-get-status" class="refentry"> <div class="refnamediv"> <h1 class="refname">opcache_get_status</h1> <p class="verinfo">(PHP 5 >= 5.5.5, PECL ZendOpcache > 7.0.2)</p><p class="refpurpose"><span class="refname">opcache_get_status</span> — <span class="dc-title">Get status information about the cache</span></p> </div> <div class="refsect1 description" id="refsect1-function.opcache-get-status-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">array</span> <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> ] )</div> <p class="para rdfs-comment"> This function returns state information about the cache instance </p> </div> <div class="refsect1 parameters" id="refsect1-function.opcache-get-status-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <span class="term"><em><code class="parameter">get_scripts</code></em></span> <dd> <p class="para"> Include script specific state information </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-function.opcache-get-status-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns an array of information, optionally containing script specific state information </p> </div> <div class="refsect1 errors" id="refsect1-function.opcache-get-status-errors"> <h3 class="title">Errors/Exceptions</h3> <p class="para"> If <em>opcache.restrict_api</em> is in use and the current path is in violation of the rule, an E_WARNING will be raised; no status information will be returned. </p> </div> <div class="refsect1 seealso" id="refsect1-function.opcache-get-status-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.opcache-get-configuration.html" class="function" rel="rdfs-seeAlso">opcache_get_configuration()</a> - Get configuration information about the cache</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.opcache-get-configuration.html">opcache_get_configuration</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.opcache-invalidate.html">opcache_invalidate</a></div> <div class="up"><a href="ref.opcache.html">OPcache Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>