reference/sem/functions/shm-get-var.xml
395ea247cf337110d795979e14841617aa9cefa9
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.shm-get-var">
3
+
<refentry xml:id="function.shm-get-var" xmlns="http://docbook.org/ns/docbook">
4
4
<refnamediv>
5
5
<refname>shm_get_var</refname>
6
6
<refpurpose>Returns a variable from shared memory</refpurpose>
...
...
@@ -10,12 +10,12 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>mixed</type><methodname>shm_get_var</methodname>
13
-
<methodparam><type>resource</type><parameter>shm_identifier</parameter></methodparam>
14
-
<methodparam><type>int</type><parameter>variable_key</parameter></methodparam>
13
+
<methodparam><type>SysvSharedMemory</type><parameter>shm</parameter></methodparam>
14
+
<methodparam><type>int</type><parameter>key</parameter></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>shm_get_var</function> returns the variable with a given
18
-
<parameter>variable_key</parameter>, in the given shared memory segment.
18
+
<parameter>key</parameter>, in the given shared memory segment.
19
19
The variable is still present in the shared memory.
20
20
</para>
21
21
</refsect1>
...
...
@@ -25,15 +25,15 @@
25
25
<para>
26
26
<variablelist>
27
27
<varlistentry>
28
-
<term><parameter>shm_identifier</parameter></term>
28
+
<term><parameter>shm</parameter></term>
29
29
<listitem>
30
30
<para>
31
-
Shared memory segment, obtained from <function>shm_attach</function>.
31
+
A shared memory segment obtained from <function>shm_attach</function>.
32
32
</para>
33
33
</listitem>
34
34
</varlistentry>
35
35
<varlistentry>
36
-
<term><parameter>variable_key</parameter></term>
36
+
<term><parameter>key</parameter></term>
37
37
<listitem>
38
38
<para>
39
39
The variable key.
...
...
@@ -51,6 +51,31 @@
51
51
</para>
52
52
</refsect1>
53
53

54
+
<refsect1 role="changelog">
55
+
&reftitle.changelog;
56
+
<para>
57
+
<informaltable>
58
+
<tgroup cols="2">
59
+
<thead>
60
+
<row>
61
+
<entry>&Version;</entry>
62
+
<entry>&Description;</entry>
63
+
</row>
64
+
</thead>
65
+
<tbody>
66
+
<row>
67
+
<entry>8.0.0</entry>
68
+
<entry>
69
+
<parameter>shm</parameter> expects a <classname>SysvSharedMemory</classname>
70
+
instance now; previously, a <type>resource</type> was expected.
71
+
</entry>
72
+
</row>
73
+
</tbody>
74
+
</tgroup>
75
+
</informaltable>
76
+
</para>
77
+
</refsect1>
78
+
54
79
<refsect1 role="seealso">
55
80
&reftitle.seealso;
56
81
<para>
...
...
@@ -62,7 +87,6 @@
62
87
</refsect1>
63
88

64
89
</refentry>
65
-

66
90
<!-- Keep this comment at the end of the file
67
91
Local variables:
68
92
mode: sgml
69
93