Skip to content

Commit 963c166

Browse files
committed
Fix grammar and typos in mysqli documentation.
1 parent 7641a62 commit 963c166

36 files changed

Lines changed: 137 additions & 138 deletions

appendices/migration83/other-changes.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@
266266
<function>mysqli_fetch_object</function> now raises a
267267
<classname>ValueError</classname> instead of an <classname>Exception</classname>
268268
when the <parameter>constructor_args</parameter> argument is non empty with
269-
the class not having constructor.
269+
the class not having a constructor.
270270
</simpara>
271271

272272
<simpara>
@@ -300,7 +300,7 @@
300300
<function>pg_fetch_object</function> now raises a
301301
<classname>ValueError</classname> instead of an <classname>Exception</classname>
302302
when the <parameter>constructor_args</parameter> argument is non empty with
303-
the class not having constructor.
303+
the class not having a constructor.
304304
</simpara>
305305

306306
<para>

reference/mysqli/book.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@
2929
xlink:href="&url.mysql.docs;">&url.mysql.docs;</link>.
3030
</para>
3131

32-
<para>
33-
Parts of this documentation included from MySQL manual with
34-
permissions of Oracle Corporation.
35-
</para>
32+
<simpara>
33+
Parts of this documentation were included from the MySQL manual with
34+
permission of Oracle Corporation.
35+
</simpara>
3636

3737
<para>
3838
Examples use either the <link xlink:href="&url.mysql.example;">world</link>

reference/mysqli/configure.xml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,15 @@
3535
as your choice of client library for each extension.
3636
</para>
3737

38-
<para>
39-
The MySQL Native Driver is the recommended client library option, as it
38+
<simpara>
39+
The MySQL Native Driver is the recommended client library option,
40+
and as of PHP 8.2.0 the only option, as it
4041
results in improved performance and gives access to features not
4142
available when using the MySQL Client Library. Refer to
4243
<link linkend="mysqli.overview.mysqlnd">What is PHP's MySQL Native
4344
Driver?</link> for a brief overview of the advantages of MySQL Native
4445
Driver.
45-
</para>
46+
</simpara>
4647

4748
<para>
4849
The <literal>/path/to/mysql_config</literal> represents the location of
@@ -64,7 +65,14 @@
6465
</thead>
6566
<tbody>
6667
<row>
67-
<entry>5.4.x and above</entry>
68+
<entry>8.2.0 and later</entry>
69+
<entry>mysqlnd</entry>
70+
<entry><option role="configure">--with-mysqli</option></entry>
71+
<entry>libmysqlclient is not supported</entry>
72+
<entry>mysqlnd is the only option</entry>
73+
</row>
74+
<row>
75+
<entry>5.4.0 through 8.1.x</entry>
6876
<entry>mysqlnd</entry>
6977
<entry><option role="configure">--with-mysqli</option></entry>
7078
<entry><option role="configure">--with-mysqli=/path/to/mysql_config</option></entry>
@@ -88,15 +96,6 @@
8896
</tgroup>
8997
</table>
9098

91-
<para>
92-
Note that it is possible to freely mix MySQL extensions and client
93-
libraries. For example, it is possible to enable the MySQL extension
94-
to use the MySQL Client Library (libmysqlclient), while configuring the
95-
<literal>mysqli</literal> extension to use the MySQL Native Driver.
96-
However, all permutations of extension and client library are
97-
possible.
98-
</para>
99-
10099
</section>
101100

102101
<section xml:id="mysqli.installation.windows">

reference/mysqli/constants.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,9 @@
448448
(<type>int</type>)
449449
</term>
450450
<listitem>
451-
<para>
452-
Field is part of an multi-index.
453-
</para>
451+
<simpara>
452+
Field is part of a multi-index.
453+
</simpara>
454454
</listitem>
455455
</varlistentry>
456456
<varlistentry xml:id="constant.mysqli-group-flag">

reference/mysqli/ini.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,10 @@
147147
<type>int</type>
148148
</term>
149149
<listitem>
150-
<para>
151-
Maximum of persistent connections that can be made. Set to
150+
<simpara>
151+
The maximum number of persistent connections that can be made. Set to
152152
0 for unlimited.
153-
</para>
153+
</simpara>
154154
</listitem>
155155
</varlistentry>
156156
<varlistentry xml:id="ini.mysqli.max-links">
@@ -159,9 +159,9 @@
159159
<type>int</type>
160160
</term>
161161
<listitem>
162-
<para>
163-
The maximum number of MySQL connections per process.
164-
</para>
162+
<simpara>
163+
The maximum number of connections per process.
164+
</simpara>
165165
</listitem>
166166
</varlistentry>
167167
<varlistentry xml:id="ini.mysqli.default-port">

reference/mysqli/mysqli/change-user.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131
In comparison to <methodname>mysqli::connect</methodname>, this method will
3232
not disconnect the current connection if the new connection cannot be opened.
3333
</para>
34-
<para>
35-
In order to successfully change users a valid <parameter>username</parameter> and
36-
<parameter>password</parameter> parameters must be provided and that user must have
34+
<simpara>
35+
In order to successfully change users, a valid <parameter>username</parameter> and
36+
<parameter>password</parameter> must be provided, and that user must have
3737
sufficient permissions to access the desired database. If for any reason authorization
3838
fails, the current user authentication will remain.
39-
</para>
39+
</simpara>
4040
</refsect1>
4141

4242
<refsect1 role="parameters">
@@ -172,13 +172,13 @@ Default database:
172172
<refsect1 role="notes">
173173
&reftitle.notes;
174174
<note>
175-
<para>
175+
<simpara>
176176
Using this command will always cause the current database connection to
177-
behave as if was a completely new database connection, regardless of if
177+
behave as if it was a completely new database connection, regardless of if
178178
the operation was completed successfully. This reset includes performing
179179
a rollback on any active transactions, closing all temporary tables, and
180180
unlocking all locked tables.
181-
</para>
181+
</simpara>
182182
</note>
183183
</refsect1>
184184

reference/mysqli/mysqli/dump-debug-info.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
<type>bool</type><methodname>mysqli_dump_debug_info</methodname>
2020
<methodparam><type>mysqli</type><parameter>mysql</parameter></methodparam>
2121
</methodsynopsis>
22-
<para>
23-
This function is designed to be executed by an user with the SUPER
22+
<simpara>
23+
This function is designed to be executed by a user with the SUPER
2424
privilege and is used to dump debugging information into the log for the
2525
MySQL Server relating to the connection.
26-
</para>
26+
</simpara>
2727
</refsect1>
2828

2929
<refsect1 role="parameters">

reference/mysqli/mysqli/errno.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333

3434
<refsect1 role="returnvalues">
3535
&reftitle.returnvalues;
36-
<para>
37-
An error code value for the last call, if it failed. zero means no error
38-
occurred.
39-
</para>
36+
<simpara>
37+
An error code value for the last call, if it failed.
38+
<literal>0</literal> means no error occurred.
39+
</simpara>
4040
</refsect1>
4141

4242
<refsect1 role="examples">

reference/mysqli/mysqli/init.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
<function>mysqli_options</function> and <function>mysqli_real_connect</function>.
2626
</para>
2727
<note>
28-
<para>
29-
Any subsequent calls to any mysqli function (except <function>mysqli_options</function>
28+
<simpara>
29+
Any subsequent call to any mysqli function (except <function>mysqli_options</function>
3030
and <function>mysqli_ssl_set</function>)
31-
will fail until <function>mysqli_real_connect</function> was called.
32-
</para>
31+
will fail until <function>mysqli_real_connect</function> is called.
32+
</simpara>
3333
</note>
3434
</refsect1>
3535

reference/mysqli/mysqli/multi-query.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
Queries are sent in a single call to the database and processed sequentially.
2929
<methodname>mysqli_multi_query</methodname> waits for the first query to
3030
complete before returning control to PHP. In the meantime, the MySQL server
31-
will continue processing the remaining queries asynchronously of PHP and make
31+
will continue processing the remaining queries asynchronously from PHP and make
3232
the results available for fetching.
3333
</para>
3434
<para>

0 commit comments

Comments
 (0)