Skip to content

Commit ad2fa5c

Browse files
committed
Fix grammar in PDO documentation.
1 parent 84534c7 commit ad2fa5c

20 files changed

Lines changed: 30 additions & 26 deletions

appendices/migration72/new-features.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ $db->quote('über', PDO::PARAM_STR | PDO::PARAM_STR_NATL);
159159
<para>
160160
The <function>PDOStatement::debugDumpParams</function> method has been
161161
updated to include the SQL being sent to the DB, where the full, raw query
162-
(including the replaced placeholders with their bounded values) will be
162+
(including the replaced placeholders with their bound values) will be
163163
shown. This has been added to aid with debugging emulated prepares (and so
164164
it will only be available when emulated prepares are turned on).
165165
</para>

reference/pdo/configure.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<step>
1212
<para>
1313
PDO and the <link linkend="ref.pdo-sqlite">PDO_SQLITE</link> driver
14-
is enabled by default. You may need
14+
are enabled by default. You may need
1515
to enable the PDO driver for your database of choice; consult the
1616
documentation for
1717
<link linkend="pdo.drivers">database-specific PDO drivers</link>

reference/pdo/connections.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ $dbh = new PDO('mysql:host=localhost;dbname=test', $user, $pass, array(
117117
<para>
118118
The value of the <constant>PDO::ATTR_PERSISTENT</constant> option is converted
119119
to &boolean; (enable/disable persistent connections), unless it is a non-numeric
120-
&string;, in which case it allows to use multiple persistent connection pools.
120+
&string;, in which case it allows the use of multiple persistent connection pools.
121121
This is useful if different connections use incompatible settings, for instance,
122122
different values of <constant>PDO::MYSQL_ATTR_USE_BUFFERED_QUERY</constant>.
123123
</para>

reference/pdo/constants.xml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,10 @@
425425
</term>
426426
<listitem>
427427
<simpara>
428-
Sets the class name of which statements are returned as.
428+
Sets the class name and constructor arguments for the extension of the
429+
<classname>PDOStatement</classname> object. The first
430+
element of the array is the class name, and the second element is an
431+
array of constructor arguments.
429432
</simpara>
430433
</listitem>
431434
</varlistentry>
@@ -518,8 +521,9 @@
518521
</term>
519522
<listitem>
520523
<simpara>
521-
Sets the default string parameter type, this can be one of <constant>PDO::PARAM_STR_NATL</constant>
522-
and <constant>PDO::PARAM_STR_CHAR</constant>.
524+
Sets the default string parameter type, which can be either
525+
<constant>PDO::PARAM_STR_NATL</constant>
526+
or <constant>PDO::PARAM_STR_CHAR</constant>.
523527
</simpara>
524528
<simpara>
525529
Available as of PHP 7.2.0.

reference/pdo/ini.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</term>
4040
<listitem>
4141
<para>
42-
Defines DSN alias. See <methodname>PDO::__construct</methodname> for
42+
Defines a DSN alias. See <methodname>PDO::__construct</methodname> for
4343
thorough explanation.
4444
</para>
4545
</listitem>

reference/pdo/pdo/connect.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<simpara>
1818
Creates an instance of a <classname>PDO</classname> subclass for the
1919
database being connected to, if it exists,
20-
otherwise return a generic <classname>PDO</classname> instance.
20+
otherwise returns a generic <classname>PDO</classname> instance.
2121
</simpara>
2222
</refsect1>
2323

reference/pdo/pdo/errorcode.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
<refsect1 role="returnvalues">
2525
&reftitle.returnvalues;
2626
<para>
27-
Returns an SQLSTATE, a five characters alphanumeric identifier defined in
27+
Returns an SQLSTATE, a five-character alphanumeric identifier defined in
2828
the ANSI SQL-92 standard. Briefly, an SQLSTATE consists of a
29-
two characters class value followed by a three characters subclass value. A
29+
two-character class value followed by a three-character subclass value. A
3030
class value of 01 indicates a warning and is accompanied by a return code
3131
of SQL_SUCCESS_WITH_INFO. Class values other than '01', except for the
3232
class 'IM', indicate an error. The class 'IM' is specific to warnings

reference/pdo/pdo/errorinfo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<tbody>
3939
<row>
4040
<entry>0</entry>
41-
<entry>SQLSTATE error code (a five characters alphanumeric identifier defined
41+
<entry>SQLSTATE error code (a five-character alphanumeric identifier defined
4242
in the ANSI SQL standard).</entry>
4343
</row>
4444
<row>

reference/pdo/pdo/getavailabledrivers.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</methodsynopsis>
2121
<para>
2222
This function returns all currently available PDO drivers which can be used
23-
in <parameter>DSN</parameter> parameter of
23+
in the <parameter>DSN</parameter> parameter of
2424
<methodname>PDO::__construct</methodname>.
2525
</para>
2626

reference/pdo/pdo/prepare.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
<note>
3535
<para>
3636
Parameter markers can represent a complete data literal only.
37-
Neither part of literal, nor keyword, nor identifier, nor whatever arbitrary query
37+
Neither part of a literal, nor keyword, nor identifier, nor whatever arbitrary query
3838
part can be bound using parameters. For example, you cannot bind multiple values
3939
to a single parameter in the IN() clause of an SQL statement.
4040
</para>
@@ -114,7 +114,7 @@
114114
</para>
115115
<note>
116116
<para>
117-
Emulated prepared statements does not communicate with the database server
117+
Emulated prepared statements do not communicate with the database server
118118
so <methodname>PDO::prepare</methodname> does not check the statement.
119119
</para>
120120
</note>

0 commit comments

Comments
 (0)