reference/pgsql/functions/pg-ping.xml
c2eca73ef79ebe78cebb34053e41b565af504c4f
...
...
@@ -11,7 +11,7 @@
11
11
&reftitle.description;
12
12
<methodsynopsis>
13
13
<type>bool</type><methodname>pg_ping</methodname>
14
-
<methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam>
14
+
<methodparam choice="opt"><type class="union"><type>PgSql\Connection</type><type>null</type></type><parameter>connection</parameter><initializer>&null;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
<function>pg_ping</function> pings a database connection and tries to
...
...
@@ -26,12 +26,7 @@
26
26
<varlistentry>
27
27
<term><parameter>connection</parameter></term>
28
28
<listitem>
29
-
<para>
30
-
PostgreSQL database connection resource. When
31
-
<parameter>connection</parameter> is not present, the default connection
32
-
is used. The default connection is the last connection made by
33
-
<function>pg_connect</function> or <function>pg_pconnect</function>.
34
-
</para>
29
+
&pgsql.parameter.connection-with-nullable-default;
35
30
</listitem>
36
31
</varlistentry>
37
32
</variablelist>
...
...
@@ -45,6 +40,29 @@
45
40
</para>
46
41
</refsect1>
47
42

43
+
<refsect1 role="changelog">
44
+
&reftitle.changelog;
45
+
<informaltable>
46
+
<tgroup cols="2">
47
+
<thead>
48
+
<row>
49
+
<entry>&Version;</entry>
50
+
<entry>&Description;</entry>
51
+
</row>
52
+
</thead>
53
+
<tbody>
54
+
&pgsql.changelog.connection-object;
55
+
<row>
56
+
<entry>8.0.0</entry>
57
+
<entry>
58
+
<parameter>connection</parameter> is now nullable.
59
+
</entry>
60
+
</row>
61
+
</tbody>
62
+
</tgroup>
63
+
</informaltable>
64
+
</refsect1>
65
+
48
66
<refsect1 role="examples">
49
67
&reftitle.examples;
50
68
<para>
...
...
@@ -78,7 +96,6 @@ if (!pg_ping($conn))
78
96
</para>
79
97
</refsect1>
80
98
</refentry>
81
-

82
99
<!-- Keep this comment at the end of the file
83
100
Local variables:
84
101
mode: sgml
85
102