MySQLi: various updates [1] - constants

* Add constants missing from the [Predefined Constants](https://www.php.net/manual/en/mysqli.constants.php) page.
    These constants were added after the initial introduction of the extension.
    Descriptions based on the descriptions for the `$options` parameter of [mysqli::options()](https://www.php.net/manual/en/mysqli.options.php)
    Version nrs based on the [extension changelog](https://www.php.net/manual/en/changelog.mysqli.php) and [src](7c33644fed/ext/mysqli/mysqli.c (L672-L678))
* Annotated the "since" version for various options for the `$options` parameter of [mysqli::options()](https://www.php.net/manual/en/mysqli.options.php)
* Removed duplicate constant name in the [mysqli::options() changelog](https://www.php.net/manual/en/mysqli.options.php#refsect1-mysqli.options-changelog)

Patch contributed by jrfnl.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350058 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2020-06-20 14:54:03 +00:00
parent 8cd8caa1c2
commit cb9c00b594
2 changed files with 57 additions and 6 deletions

View file

@ -37,6 +37,41 @@
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constantmysqli-opt-int-and-float-native">
<term><constant>MYSQLI_OPT_INT_AND_FLOAT_NATIVE</constant></term>
<listitem>
<para>
Convert integer and float columns back to PHP numbers. Only valid for mysqlnd.
Available since PHP 5.3.0.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constantmysqli-opt-net-cmd-buffer-size">
<term><constant>MYSQLI_OPT_NET_CMD_BUFFER_SIZE</constant></term>
<listitem>
<para>
The size of the internal command/network buffer. Only valid for mysqlnd.
Available since PHP 5.3.0.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constantmysqli-opt-net-read-buffer-size">
<term><constant>MYSQLI_OPT_NET_READ_BUFFER_SIZE</constant></term>
<listitem>
<para>
Maximum read chunk size in bytes when reading the body of a MySQL command packet.
Only valid for mysqlnd. Available since PHP 5.3.0.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constantmysqli-opt-ssl-verify-server-cert">
<term><constant>MYSQLI_OPT_SSL_VERIFY_SERVER_CERT</constant></term>
<listitem>
<para>
Available since PHP 5.3.0. (MySQL 5.1.10 and up)
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constantmysqli-init-command">
<term><constant>MYSQLI_INIT_COMMAND</constant></term>
<listitem>
@ -626,6 +661,14 @@
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constantmysqli-server-public-key">
<term><constant>MYSQLI_SERVER_PUBLIC_KEY</constant></term>
<listitem>
<para>
Available since PHP 5.5.0.
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constantmysqli-refresh-grant">
<term><constant>MYSQLI_REFRESH_GRANT</constant></term>
<listitem>
@ -761,7 +804,14 @@
</para>
</listitem>
</varlistentry>
<varlistentry xml:id="constantmysqli-client-ssl-dont-verify-server-cert">
<term><constant>MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT</constant></term>
<listitem>
<para>
Available since PHP 5.6.16. (MySQL 5.6.5 and up)
</para>
</listitem>
</varlistentry>
</variablelist>
</appendix>

View file

@ -84,32 +84,34 @@
<entry><constant>MYSQLI_SERVER_PUBLIC_KEY</constant></entry>
<entry>
RSA public key file used with the SHA-256 based authentication.
Available since PHP 5.5.0.
</entry>
</row>
<row>
<entry><constant>MYSQLI_OPT_NET_CMD_BUFFER_SIZE</constant></entry>
<entry>
The size of the internal command/network buffer. Only valid for
mysqlnd.
mysqlnd. Available since PHP 5.3.0.
</entry>
</row>
<row>
<entry><constant>MYSQLI_OPT_NET_READ_BUFFER_SIZE</constant></entry>
<entry>
Maximum read chunk size in bytes when reading the body of a MySQL
command packet. Only valid for mysqlnd.
command packet. Only valid for mysqlnd. Available since PHP 5.3.0.
</entry>
</row>
<row>
<entry><constant>MYSQLI_OPT_INT_AND_FLOAT_NATIVE</constant></entry>
<entry>
Convert integer and float columns back to PHP numbers. Only valid
for mysqlnd.
for mysqlnd. Available since PHP 5.3.0.
</entry>
</row>
<row>
<entry><constant>MYSQLI_OPT_SSL_VERIFY_SERVER_CERT</constant></entry>
<entry>
Available since PHP 5.3.0.
</entry>
</row>
</tbody>
@ -152,8 +154,7 @@
<row>
<entry>5.5.0</entry>
<entry>
The <constant>MYSQLI_SERVER_PUBLIC_KEY</constant> and
<constant>MYSQLI_SERVER_PUBLIC_KEY</constant> options were added.
The <constant>MYSQLI_SERVER_PUBLIC_KEY</constant> option was added.
</entry>
</row>
<row>