reference/mysqli/mysqli/store-result.xml
699e596aaba256f7c3c81be8bb309e12fbd03ef4
699e596aaba256f7c3c81be8bb309e12fbd03ef4
...
...
@@ -10,19 +10,19 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<para>&style.oop;</para>
13
-
<methodsynopsis role="oop">
14
-
<type>mysqli_result</type><methodname>mysqli::store_result</methodname>
15
-
<methodparam choice="opt"><type>int</type><parameter>option</parameter></methodparam>
13
+
<methodsynopsis role="mysqli">
14
+
<modifier>public</modifier> <type class="union"><type>mysqli_result</type><type>false</type></type><methodname>mysqli::store_result</methodname>
15
+
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>0</initializer></methodparam>
16
16
</methodsynopsis>
17
17
<para>&style.procedural;</para>
18
18
<methodsynopsis>
19
-
<type>mysqli_result</type><methodname>mysqli_store_result</methodname>
20
-
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
21
-
<methodparam choice="opt"><type>int</type><parameter>option</parameter></methodparam>
19
+
<type class="union"><type>mysqli_result</type><type>false</type></type><methodname>mysqli_store_result</methodname>
20
+
<methodparam><type>mysqli</type><parameter>mysql</parameter></methodparam>
21
+
<methodparam choice="opt"><type>int</type><parameter>mode</parameter><initializer>0</initializer></methodparam>
22
22
</methodsynopsis>
23
23
<para>
24
24
Transfers the result set from the last query on the database connection
25
-
represented by the <parameter>link</parameter> parameter to be used with
25
+
represented by the <parameter>mysql</parameter> parameter to be used with
26
26
the <function>mysqli_data_seek</function> function.
27
27
</para>
28
28
</refsect1>
...
...
@@ -33,11 +33,11 @@
33
33
<variablelist>
34
34
&mysqli.link.description;
35
35
<varlistentry>
36
-
<term><parameter>option</parameter></term>
36
+
<term><parameter>mode</parameter></term>
37
37
<listitem>
38
38
<para>
39
-
The option that you want to set. It can be one of the following values:
40
-
<table>
39
+
The option that you want to set. As of PHP 8.1, this parameter has no effect. It can be one of the following values:
40
+
<table xml:id="mysqli.store-result.parameters">
41
41
<title>Valid options</title>
42
42
<tgroup cols="2">
43
43
<thead>
...
...
@@ -53,7 +53,7 @@
53
53
mysqlnd will use a reference logic to avoid copying and duplicating results held in memory.
54
54
For certain result sets, for example, result sets with many small rows, the copy approach can
55
55
reduce the overall memory usage because PHP variables holding results may be
56
-
released earlier (available with mysqlnd only, since PHP 5.6.0)</entry>
56
+
released earlier (available with mysqlnd only)</entry>
57
57
</row>
58
58
</tbody>
59
59
</tgroup>
...
...
@@ -88,6 +88,41 @@
88
88
</note>
89
89
</refsect1>
90
90
91
+
<refsect1 role="errors">
92
+
&reftitle.errors;
93
+
&mysqli.conditionalexception;
94
+
</refsect1>
95
+
96
+
<refsect1 role="changelog">
97
+
&reftitle.changelog;
98
+
<informaltable>
99
+
<tgroup cols="2">
100
+
<thead>
101
+
<row>
102
+
<entry>&Version;</entry>
103
+
<entry>&Description;</entry>
104
+
</row>
105
+
</thead>
106
+
<tbody>
107
+
<row>
108
+
<entry>8.4.0</entry>
109
+
<entry>
110
+
Passing the <parameter>mode</parameter> parameter is now deprecated.
111
+
The parameter has had no effect as of PHP 8.1.0.
112
+
</entry>
113
+
</row>
114
+
</tbody>
115
+
</tgroup>
116
+
</informaltable>
117
+
</refsect1>
118
+
119
+
<refsect1 role="examples">
120
+
&reftitle.examples;
121
+
<para>
122
+
See <function>mysqli_multi_query</function>.
123
+
</para>
124
+
</refsect1>
125
+
91
126
<refsect1 role="notes">
92
127
&reftitle.notes;
93
128
<note>
...
...
@@ -101,13 +136,6 @@
101
136
</note>
102
137
</refsect1>
103
138
104
-
<refsect1 role="examples">
105
-
&reftitle.examples;
106
-
<para>
107
-
See <function>mysqli_multi_query</function>.
108
-
</para>
109
-
</refsect1>
110
-
111
139
<refsect1 role="seealso">
112
140
&reftitle.seealso;
113
141
<para>
...
...
@@ -119,7 +147,6 @@
119
147
</refsect1>
120
148
121
149
</refentry>
122
-
123
150
<!-- Keep this comment at the end of the file
124
151
Local variables:
125
152
mode: sgml
126
153