* Compiles and caches a PHP script without executing it
* @link https://secure.php.net/manual/en/function.opcache-compile-file.php
* @param string $filename The path to the PHP script to be compiled.
* @return bool
* Returns TRUE if the opcode cache for script was
* invalidated or if there was nothing to invalidate, or FALSE if the opcode
* cache is disabled.
* @since 5.5
*/
function opcache_compile_file(string $filename): bool {}
/**
* (PHP 5 >= 5.5.0, PECL ZendOpcache >= 7.0.0 )
* Invalidates a cached script
* @link https://secure.php.net/manual/en/function.opcache-invalidate.php
* @param string $filename
The path to the script being invalidated.
* @param bool $force [optional]If set to TRUE, the script will be invalidated regardless of whether invalidation is necessary.
* @return bool * Returns TRUE if the opcode cache for script was * invalidated or if there was nothing to invalidate, or FALSE if the opcode * cache is disabled. * @since 5.5 */ function opcache_invalidate(string $filename, bool $force = false): bool {} /** * (PHP 5 >= 5.5.0, PECL ZendOpcache >= 7.0.0 )Include script specific state information
* @return array|falseReturns an array of information, optionally containing script specific state information
* @since 5.5 */ #[ArrayShape([ 'opcache_enabled' => 'bool', 'file_cache' => 'string', 'file_cache_only' => 'bool', 'cache_full' => 'bool', 'restart_pending' => 'bool', 'restart_in_progress' => 'bool', 'memory_usage' => 'array', 'interned_strings_usage' => 'array', 'opcache_statistics' => 'array', 'preload_statistics' => 'array', 'scripts' => 'array', 'jit' => 'array', ])] function opcache_get_status(bool $include_scripts = true): array|false {} /** * (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )Returns an array of information, including ini, blacklist and version
* @since 5.5 */ #[ArrayShape(["directives" => "array", "version" => "string[]", "blacklist" => "array"])] function opcache_get_configuration(): array|false {} /** * (PHP 5 >= 5.6, PECL ZendOpcache >= 7.0.4 )