forked from HvyIndustries/crane-php-stubs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Zend-OPcache.php
75 lines (67 loc) · 2.64 KB
/
Zend-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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?php
// Start of Zend OPcache v.7.0.6-devFE
/**
* (PHP 5 >= 5.5.0, PHP 7, PECL ZendOpcache >= 7.0.0)<br/>
* Resets the contents of the opcode cache
* @link http://php.net/manual/en/function.opcache-reset.php
* @return boolean <b>TRUE</b> if the opcode cache was reset, or <b>FALSE</b> if the opcode
* cache is disabled.
*/
function opcache_reset(): bool {}
/**
* (PHP 5 >= 5.5.0, PHP 7, PECL ZendOpcache >= 7.0.0)<br/>
* Invalidates a cached script
* @link http://php.net/manual/en/function.opcache-invalidate.php
* @param string $script <p>
* The path to the script being invalidated.
* </p>
* @param boolean $force [optional] <p>
* If set to <b>TRUE</b>, the script will be invalidated regardless of whether
* invalidation is necessary.
* </p>
* @return boolean <b>TRUE</b> if the opcode cache for <i>script</i> was
* invalidated or if there was nothing to invalidate, or <b>FALSE</b> if the opcode
* cache is disabled.
*/
function opcache_invalidate(string $script, bool $force = false): bool {}
/**
* (PHP 5 >= 5.5.5, PHP 7, PECL ZendOpcache > 7.0.2)<br/>
* Compiles and caches a PHP script without executing it
* @link http://php.net/manual/en/function.opcache-compile-file.php
* @param string $file <p>
* The path to the PHP script to be compiled.
* </p>
* @return boolean <b>TRUE</b> if <i>file</i> was compiled successfully
* or <b>FALSE</b> on failure.
*/
function opcache_compile_file(string $file): bool {}
/**
* (PHP 5 >= 5.6.0, PHP 7, PECL ZendOpcache >= 7.0.4)<br/>
* Tells whether a script is cached in OPCache
* @link http://php.net/manual/en/function.opcache-is-script-cached.php
* @param string $file <p>
* The path to the PHP script to be checked.
* </p>
* @return boolean <b>TRUE</b> if <i>file</i> is cached in OPCache,
* <b>FALSE</b> otherwise.
*/
function opcache_is_script_cached(string $file): bool {}
/**
* (PHP 5 >= 5.5.5, PHP 7, 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 an array of information, including ini, blacklist and version
*/
function opcache_get_configuration(): array {}
/**
* (PHP 5 >= 5.5.5, PHP 7, PECL ZendOpcache > 7.0.2)<br/>
* Get status information about the cache
* @link http://php.net/manual/en/function.opcache-get-status.php
* @param boolean $get_scripts [optional] <p>
* Include script specific state information
* </p>
* @return array an array of information, optionally containing script specific state information
*/
function opcache_get_status(bool $get_scripts = true): array {}
// End of Zend OPcache v.7.0.6-devFE
?>