forked from JetBrains/phpstorm-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOPcache.php
61 lines (55 loc) · 2.63 KB
/
OPcache.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )<br/>
* Compiles and caches a PHP script without executing it
* @link http://www.php.net/manual/en/function.opcache-compile-file.php
* @param string $file The path to the PHP script to be compiled.
* @return boolean
* Returns <b>TRUE</b> if the opcode cache for <em>script</em> was
* invalidated or if there was nothing to invalidate, or <b>FALSE</b> if the opcode
* cache is disabled.
*/
function opcache_compile_file($file) { }
/**
* (PHP 5 >= 5.5.0, PECL ZendOpcache >= 7.0.0 )<br/>
* Invalidates a cached script
* @link http://www.php.net/manual/en/function.opcache-invalidate.php
* @param string $script <p>The path to the script being invalidated.</p>
* @param bool $force [optional] <p> If set to <b>TRUE</b>, the script will be invalidated regardless of whether invalidation is necessary.</p>
* @return boolean
* Returns <b>TRUE</b> if the opcode cache for <em>script</em> was
* invalidated or if there was nothing to invalidate, or <b>FALSE</b> if the opcode
* cache is disabled.
*/
function opcache_invalidate($script, $force = FALSE) { }
/**
* (PHP 5 >= 5.5.0, PECL ZendOpcache >= 7.0.0 )<br/>
* Resets the contents of the opcode cache
* @link http://www.php.net/manual/en/function.opcache-reset.php
* @return boolean Returns <b>TRUE</b> if the opcode cache was reset, or <b>FALSE</b> if the opcode cache is disabled.
*/
function opcache_reset() { }
/**
* (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )<br/>
* Get status information about the cache
* @link http://php.net/manual/en/function.opcache-get-status.php
* @param bool $get_scripts <p>Include script specific state information</p>
* @return array <p>Returns an array of information, optionally containing script specific state information</p>
*/
function opcache_get_status ($get_scripts = TRUE) {}
/**
* (PHP 5 >= 5.5.5, PECL ZendOpcache >= 7.0.2 )<br/>
* Get configuration information about the cache
* @link http://php.net/manual/en/function.opcache-get-configuration.php
* @return array <p>Returns an array of information, including ini, blacklist and version</p>
*/
function opcache_get_configuration() {}
/**
* (PHP 5 >= 5.6, PECL ZendOpcache >= 7.0.4 )<br/>
* This function checks if a PHP script has been cached in OPCache.
* This can be used to more easily detect the "warming" of the cache for a particular script.
* @link https://secure.php.net/manual/en/function.opcache-is-script-cached.php
* @param $file The path to the PHP script to be checked.
* @return bool Returns TRUE if file is cached in OPCache, FALSE otherwise.
*/
function opcache_is_script_cached($file) {}