-
Notifications
You must be signed in to change notification settings - Fork 7
/
sysvshm.php
113 lines (104 loc) · 3.35 KB
/
sysvshm.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
// Start of sysvshm v.7.0.4-7ubuntu2
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Creates or open a shared memory segment
* @link http://php.net/manual/en/function.shm-attach.php
* @param int $key <p>
* A numeric shared memory segment ID
* </p>
* @param int $memsize [optional] <p>
* The memory size. If not provided, default to the
* sysvshm.init_mem in the <i>php.ini</i>, otherwise 10000
* bytes.
* </p>
* @param int $perm [optional] <p>
* The optional permission bits. Default to 0666.
* </p>
* @return resource a shared memory segment identifier.
*/
function shm_attach(int $key, int $memsize = null, int $perm = 0666) {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Removes shared memory from Unix systems
* @link http://php.net/manual/en/function.shm-remove.php
* @param resource $shm_identifier <p>
* The shared memory identifier as returned by
* <b>shm_attach</b>
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function shm_remove($shm_identifier): bool {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Disconnects from shared memory segment
* @link http://php.net/manual/en/function.shm-detach.php
* @param resource $shm_identifier <p>
* A shared memory resource handle as returned by
* <b>shm_attach</b>
* </p>
* @return bool <b>shm_detach</b> always returns <b>TRUE</b>.
*/
function shm_detach($shm_identifier): bool {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Inserts or updates a variable in shared memory
* @link http://php.net/manual/en/function.shm-put-var.php
* @param resource $shm_identifier <p>
* A shared memory resource handle as returned by
* <b>shm_attach</b>
* </p>
* @param int $variable_key <p>
* The variable key.
* </p>
* @param mixed $variable <p>
* The variable. All variable types
* that <b>serialize</b> supports may be used: generally
* this means all types except for resources and some internal objects
* that cannot be serialized.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function shm_put_var($shm_identifier, int $variable_key, $variable): bool {}
/**
* (PHP 5 >= 5.3.0, PHP 7)<br/>
* Check whether a specific entry exists
* @link http://php.net/manual/en/function.shm-has-var.php
* @param resource $shm_identifier <p>
* Shared memory segment, obtained from <b>shm_attach</b>.
* </p>
* @param int $variable_key <p>
* The variable key.
* </p>
* @return bool <b>TRUE</b> if the entry exists, otherwise <b>FALSE</b>
*/
function shm_has_var($shm_identifier, int $variable_key): bool {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Returns a variable from shared memory
* @link http://php.net/manual/en/function.shm-get-var.php
* @param resource $shm_identifier <p>
* Shared memory segment, obtained from <b>shm_attach</b>.
* </p>
* @param int $variable_key <p>
* The variable key.
* </p>
* @return mixed the variable with the given key.
*/
function shm_get_var($shm_identifier, int $variable_key) {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Removes a variable from shared memory
* @link http://php.net/manual/en/function.shm-remove-var.php
* @param resource $shm_identifier <p>
* The shared memory identifier as returned by
* <b>shm_attach</b>
* </p>
* @param int $variable_key <p>
* The variable key.
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function shm_remove_var($shm_identifier, int $variable_key): bool {}
// End of sysvshm v.7.0.4-7ubuntu2
?>