Skip to content

Commit ac7276e

Browse files
committed
pg-pconnect: fix typos
1 parent 262ca5a commit ac7276e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

reference/pgsql/functions/pg-pconnect.xml

+14-14
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</methodsynopsis>
1717
<para>
1818
<function>pg_pconnect</function> opens a connection to a
19-
PostgreSQL database. It returns an <classname>PgSql\Connection</classname> instance that is
19+
PostgreSQL database. It returns a <classname>PgSql\Connection</classname> instance that is
2020
needed by other PostgreSQL functions.
2121
</para>
2222
<para>
@@ -27,11 +27,11 @@
2727
<parameter>flags</parameter>.
2828
</para>
2929
<para>
30-
To enable persistent connection, the <link linkend="ini.pgsql.allow-persistent">pgsql.allow_persistent</link>
31-
&php.ini; directive must be set to &quot;On&quot; (which is the default).
32-
The maximum number of persistent connection can be defined with the <link linkend="ini.pgsql.max-persistent">pgsql.max_persistent</link>
33-
&php.ini; directive (defaults to -1 for no limit). The total number
34-
of connections can be set with the <link linkend="ini.pgsql.max-links">pgsql.max_links</link>
30+
To enable persistent connections, the <link linkend="ini.pgsql.allow-persistent">pgsql.allow_persistent</link>
31+
&php.ini; directive must be set to <literal>"On"</literal> (which is the default).
32+
The maximum number of persistent connections can be defined with the <link linkend="ini.pgsql.max-persistent">pgsql.max_persistent</link>
33+
&php.ini; directive (defaults to <literal>-1</literal> for no limit). The total number
34+
of connections can be set with the <link linkend="ini.pgsql.max-links">pgsql.max_links</link>
3535
&php.ini; directive.
3636
</para>
3737
<para>
@@ -54,7 +54,7 @@
5454
the equal sign are optional. To write an empty value or a value
5555
containing spaces, surround it with single quotes, e.g., <literal>keyword =
5656
'a value'</literal>. Single quotes and backslashes within the value must be
57-
escaped with a backslash, i.e., \' and \\.
57+
escaped with a backslash, i.e., <literal>\'</literal> and <literal>\\</literal>.
5858
</para>
5959
<para>
6060
The currently recognized parameter keywords are:
@@ -63,7 +63,7 @@
6363
<parameter>password</parameter>, <parameter>connect_timeout</parameter>,
6464
<parameter>options</parameter>, <parameter>tty</parameter> (ignored), <parameter>sslmode</parameter>,
6565
<parameter>requiressl</parameter> (deprecated in favor of <parameter>sslmode</parameter>), and
66-
<parameter>service</parameter>. Which of these arguments exist depends
66+
<parameter>service</parameter>. Which of these arguments exist depends
6767
on your PostgreSQL version.
6868
</para>
6969
</listitem>
@@ -85,7 +85,7 @@
8585
<refsect1 role="returnvalues">
8686
&reftitle.returnvalues;
8787
<para>
88-
Returns an <classname>PgSql\Connection</classname> instance on success, &return.falseforfailure;.
88+
Returns a <classname>PgSql\Connection</classname> instance on success, &return.falseforfailure;.
8989
</para>
9090
</refsect1>
9191

@@ -103,7 +103,7 @@
103103
<row>
104104
<entry>8.1.0</entry>
105105
<entry>
106-
Returns an <classname>PgSql\Connection</classname> instance now;
106+
Returns a <classname>PgSql\Connection</classname> instance now;
107107
previously, a &resource; was returned.
108108
</entry>
109109
</row>
@@ -120,18 +120,18 @@
120120
<programlisting role="php">
121121
<![CDATA[
122122
<?php
123+
// Connect to a database named "mary"
123124
$dbconn = pg_pconnect("dbname=mary");
124-
//connect to a database named "mary"
125125
126+
// Connect to a database named "mary" on "localhost" at port "5432"
126127
$dbconn2 = pg_pconnect("host=localhost port=5432 dbname=mary");
127-
// connect to a database named "mary" on "localhost" at port "5432"
128128
129+
// Connect to a database named "mary" on the host "sheep" with a username and password
129130
$dbconn3 = pg_pconnect("host=sheep port=5432 dbname=mary user=lamb password=foo");
130-
//connect to a database named "mary" on the host "sheep" with a username and password
131131
132+
// Connect to a database named "test" on the host "sheep" with a username and password
132133
$conn_string = "host=sheep port=5432 dbname=test user=lamb password=bar";
133134
$dbconn4 = pg_pconnect($conn_string);
134-
//connect to a database named "test" on the host "sheep" with a username and password
135135
?>
136136
]]>
137137
</programlisting>

0 commit comments

Comments
 (0)