reference/mysqli/mysqli/kill.xml
9b1673cf114a1e10c4563ab9223cb56aed552b89
...
...
@@ -7,22 +7,28 @@
7
7
<refpurpose>Asks the server to kill a MySQL thread</refpurpose>
8
8
</refnamediv>
9
9

10
+
<refsynopsisdiv>
11
+
&warn.deprecated.function-8-4-0;
12
+
</refsynopsisdiv>
13
+

10
14
<refsect1 role="description">
11
15
&reftitle.description;
12
-
<para>Object oriented style (method)</para>
13
-
<methodsynopsis>
14
-
<type>bool</type><methodname>mysqli::kill</methodname>
15
-
<methodparam><type>int</type><parameter>processid</parameter></methodparam>
16
-
</methodsynopsis>
17
-
<para>Procedural style:</para>
16
+
<para>&style.oop;</para>
17
+
<methodsynopsis role="mysqli">
18
+
<modifier role="attribute">#[\Deprecated]</modifier>
19
+
<modifier>public</modifier> <type>bool</type><methodname>mysqli::kill</methodname>
20
+
<methodparam><type>int</type><parameter>process_id</parameter></methodparam>
21
+
</methodsynopsis>
22
+
<para>&style.procedural;</para>
18
23
<methodsynopsis>
24
+
<modifier role="attribute">#[\Deprecated]</modifier>
19
25
<type>bool</type><methodname>mysqli_kill</methodname>
20
-
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
21
-
<methodparam><type>int</type><parameter>processid</parameter></methodparam>
26
+
<methodparam><type>mysqli</type><parameter>mysql</parameter></methodparam>
27
+
<methodparam><type>int</type><parameter>process_id</parameter></methodparam>
22
28
</methodsynopsis>
23
29
<para>
24
30
This function is used to ask the server to kill a MySQL thread specified
25
-
by the <parameter>processid</parameter> parameter. This value must be
31
+
by the <parameter>process_id</parameter> parameter. This value must be
26
32
retrieved by calling the <function>mysqli_thread_id</function> function.
27
33
</para>
28
34
<para>
...
...
@@ -47,10 +53,40 @@
47
53
</para>
48
54
</refsect1>
49
55

56
+
<refsect1 role="errors">
57
+
&reftitle.errors;
58
+
&mysqli.conditionalexception;
59
+
</refsect1>
60
+

61
+
<refsect1 role="changelog">
62
+
&reftitle.changelog;
63
+
<informaltable>
64
+
<tgroup cols="2">
65
+
<thead>
66
+
<row>
67
+
<entry>&Version;</entry>
68
+
<entry>&Description;</entry>
69
+
</row>
70
+
</thead>
71
+
<tbody>
72
+
<row>
73
+
<entry>8.4.0</entry>
74
+
<entry>
75
+
Both <methodname>mysqli::kill</methodname> and
76
+
<function>mysqli_kill</function> are now deprecated. Use the
77
+
<literal>KILL</literal> SQL command instead.
78
+
</entry>
79
+
</row>
80
+
</tbody>
81
+
</tgroup>
82
+
</informaltable>
83
+
</refsect1>
84
+

50
85
<refsect1 role="examples">
51
86
&reftitle.examples;
52
87
<example>
53
-
<title>Object oriented style</title>
88
+
<title><methodname>mysqli::kill</methodname> example</title>
89
+
<para>&style.oop;</para>
54
90
<programlisting role="php">
55
91
<![CDATA[
56
92
<?php
...
...
@@ -78,10 +114,8 @@ if (!$mysqli->query("CREATE TABLE myCity LIKE City")) {
78
114
$mysqli->close();
79
115
?>
80
116
]]>
81
-
</programlisting>
82
-
</example>
83
-
<example>
84
-
<title>Procedural style</title>
117
+
</programlisting>
118
+
<para>&style.procedural;</para>
85
119
<programlisting role="php">
86
120
<![CDATA[
87
121
<?php
...
...
@@ -110,13 +144,13 @@ mysqli_close($link);
110
144
?>
111
145
]]>
112
146
</programlisting>
113
-
</example>
114
-
&example.outputs;
115
-
<screen>
147
+
&examples.outputs;
148
+
<screen>
116
149
<![CDATA[
117
150
Error: MySQL server has gone away
118
151
]]>
119
-
</screen>
152
+
</screen>
153
+
</example>
120
154
</refsect1>
121
155

122
156
<refsect1 role="seealso">
...
...
@@ -129,28 +163,6 @@ Error: MySQL server has gone away
129
163
</refsect1>
130
164

131
165
</refentry>
132
-

133
-
<!-- Keep this comment at the end of the file
134
-
Local variables:
135
-
mode: sgml
136
-
sgml-omittag:t
137
-
sgml-shorttag:t
138
-
sgml-minimize-attributes:nil
139
-
sgml-always-quote-attributes:t
140
-
sgml-indent-step:1
141
-
sgml-indent-data:t
142
-
indent-tabs-mode:nil
143
-
sgml-parent-document:nil
144
-
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
145
-
sgml-exposed-tags:nil
146
-
sgml-local-catalogs:nil
147
-
sgml-local-ecat-files:nil
148
-
End:
149
-
vim600: syn=xml fen fdm=syntax fdl=2 si
150
-
vim: et tw=78 syn=sgml
151
-
vi: ts=1 sw=1
152
-
-->
153
-

154
166
<!-- Keep this comment at the end of the file
155
167
Local variables:
156
168
mode: sgml
157
169