![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/vendor/thecodingmachine/safe/generated/ |
<?php namespace Safe; use Safe\Exceptions\OpcacheException; /** * This function compiles a PHP script and adds it to the opcode cache without * executing it. This can be used to prime the cache after a Web server * restart by pre-caching files that will be included in later requests. * * @param string $filename The path to the PHP script to be compiled. * @throws OpcacheException * */ function opcache_compile_file(string $filename): void { error_clear_last(); $safeResult = \opcache_compile_file($filename); if ($safeResult === false) { throw OpcacheException::createFromPhpError(); } } /** * This function returns state information about the in-memory cache instance. It will not return any * information about the file cache. * * @param bool $include_scripts Include script specific state information * @return array Returns an array of information, optionally containing script specific state information. * @throws OpcacheException * */ function opcache_get_status(bool $include_scripts = true): array { error_clear_last(); $safeResult = \opcache_get_status($include_scripts); if ($safeResult === false) { throw OpcacheException::createFromPhpError(); } return $safeResult; }