reference/mysqli/mysqli/kill.xml
63b99082ef83eade08151f8cb528246fded81db9
...
...
@@ -9,20 +9,20 @@
9
9

10
10
<refsect1 role="description">
11
11
&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>
12
+
<para>&style.oop;</para>
13
+
<methodsynopsis role="mysqli">
14
+
<modifier>public</modifier> <type>bool</type><methodname>mysqli::kill</methodname>
15
+
<methodparam><type>int</type><parameter>process_id</parameter></methodparam>
16
+
</methodsynopsis>
17
+
<para>&style.procedural;</para>
18
18
<methodsynopsis>
19
19
<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>
20
+
<methodparam><type>mysqli</type><parameter>mysql</parameter></methodparam>
21
+
<methodparam><type>int</type><parameter>process_id</parameter></methodparam>
22
22
</methodsynopsis>
23
23
<para>
24
24
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
25
+
by the <parameter>process_id</parameter> parameter. This value must be
26
26
retrieved by calling the <function>mysqli_thread_id</function> function.
27
27
</para>
28
28
<para>
...
...
@@ -47,10 +47,16 @@
47
47
</para>
48
48
</refsect1>
49
49

50
+
<refsect1 role="errors">
51
+
&reftitle.errors;
52
+
&mysqli.conditionalexception;
53
+
</refsect1>
54
+

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

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

131
135
</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
136
<!-- Keep this comment at the end of the file
155
137
Local variables:
156
138
mode: sgml
157
139