PHP 8.4.2 Released!

opcache_get_status

(PHP 5 >= 5.5.0, PHP 7, PHP 8, PECL ZendOpcache > 7.0.2)

opcache_get_statusGet status information about the cache

Descrizione

opcache_get_status(bool $include_scripts = true): array|false

This function returns state information about the in-memory cache instance. It will not return any information about the file cache.

Elenco dei parametri

include_scripts

Include script specific state information

Valori restituiti

Returns an array of information, optionally containing script specific state information, o false in caso di fallimento.

Errori/Eccezioni

If opcache.restrict_api 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.

Vedere anche:

add a note

User Contributed Notes 1 note

up
1
pascal dot landau at googlemail dot com
7 years ago
If the opcache is disabled, this functions returns false.
To Top