reference/mysqli/mysqli/ping.xml
63b99082ef83eade08151f8cb528246fded81db9
...
...
@@ -10,21 +10,26 @@
10
10
<refsect1 role="description">
11
11
&reftitle.description;
12
12
<para>&style.oop;</para>
13
-
<methodsynopsis role="oop">
14
-
<type>bool</type><methodname>mysqli::ping</methodname>
13
+
<methodsynopsis role="mysqli">
14
+
<modifier>public</modifier> <type>bool</type><methodname>mysqli::ping</methodname>
15
15
<void/>
16
16
</methodsynopsis>
17
17
<para>&style.procedural;</para>
18
18
<methodsynopsis>
19
19
<type>bool</type><methodname>mysqli_ping</methodname>
20
-
<methodparam><type>mysqli</type><parameter>link</parameter></methodparam>
20
+
<methodparam><type>mysqli</type><parameter>mysql</parameter></methodparam>
21
21
</methodsynopsis>
22
22
<para>
23
23
Checks whether the connection to the server is working. If it has gone
24
-
down, and global option <link
25
-
linkend="ini.mysqli.reconnect">mysqli.reconnect</link> is enabled
24
+
down and global option <link linkend="ini.mysqli.reconnect">mysqli.reconnect</link> is enabled,
26
25
an automatic reconnection is attempted.
27
26
</para>
27
+
<note>
28
+
<simpara>
29
+
The &php.ini; setting mysqli.reconnect is ignored by the mysqlnd driver, so
30
+
automatic reconnection is never attempted.
31
+
</simpara>
32
+
</note>
28
33
<para>
29
34
This function can be used by clients that remain idle for a long while,
30
35
to check whether the server has closed the connection and reconnect if
...
...
@@ -48,6 +53,11 @@
48
53
</para>
49
54
</refsect1>
50
55

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

51
61
<refsect1 role="examples">
52
62
&reftitle.examples;
53
63
<example>
...
...
@@ -110,7 +120,6 @@ Our connection is ok!
110
120
</refsect1>
111
121

112
122
</refentry>
113
-

114
123
<!-- Keep this comment at the end of the file
115
124
Local variables:
116
125
mode: sgml
117
126