From cb9c00b594f7ceeed338488be409ff571fc17f51 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Sat, 20 Jun 2020 14:54:03 +0000 Subject: [PATCH] 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](https://github.com/php/php-src/blob/7c33644fedbb44b8c671311a7f49f9e280b82249/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 --- reference/mysqli/constants.xml | 52 ++++++++++++++++++++++++++++- reference/mysqli/mysqli/options.xml | 11 +++--- 2 files changed, 57 insertions(+), 6 deletions(-) diff --git a/reference/mysqli/constants.xml b/reference/mysqli/constants.xml index b72f5a0bcf..c09485e856 100644 --- a/reference/mysqli/constants.xml +++ b/reference/mysqli/constants.xml @@ -37,6 +37,41 @@ + + MYSQLI_OPT_INT_AND_FLOAT_NATIVE + + + Convert integer and float columns back to PHP numbers. Only valid for mysqlnd. + Available since PHP 5.3.0. + + + + + MYSQLI_OPT_NET_CMD_BUFFER_SIZE + + + The size of the internal command/network buffer. Only valid for mysqlnd. + Available since PHP 5.3.0. + + + + + MYSQLI_OPT_NET_READ_BUFFER_SIZE + + + 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. + + + + + MYSQLI_OPT_SSL_VERIFY_SERVER_CERT + + + Available since PHP 5.3.0. (MySQL 5.1.10 and up) + + + MYSQLI_INIT_COMMAND @@ -626,6 +661,14 @@ + + MYSQLI_SERVER_PUBLIC_KEY + + + Available since PHP 5.5.0. + + + MYSQLI_REFRESH_GRANT @@ -761,7 +804,14 @@ - + + MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT + + + Available since PHP 5.6.16. (MySQL 5.6.5 and up) + + + diff --git a/reference/mysqli/mysqli/options.xml b/reference/mysqli/mysqli/options.xml index f99277b30e..1ab7bcce0f 100644 --- a/reference/mysqli/mysqli/options.xml +++ b/reference/mysqli/mysqli/options.xml @@ -84,32 +84,34 @@ MYSQLI_SERVER_PUBLIC_KEY RSA public key file used with the SHA-256 based authentication. + Available since PHP 5.5.0. MYSQLI_OPT_NET_CMD_BUFFER_SIZE The size of the internal command/network buffer. Only valid for - mysqlnd. + mysqlnd. Available since PHP 5.3.0. MYSQLI_OPT_NET_READ_BUFFER_SIZE 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. MYSQLI_OPT_INT_AND_FLOAT_NATIVE Convert integer and float columns back to PHP numbers. Only valid - for mysqlnd. + for mysqlnd. Available since PHP 5.3.0. MYSQLI_OPT_SSL_VERIFY_SERVER_CERT + Available since PHP 5.3.0. @@ -152,8 +154,7 @@ 5.5.0 - The MYSQLI_SERVER_PUBLIC_KEY and - MYSQLI_SERVER_PUBLIC_KEY options were added. + The MYSQLI_SERVER_PUBLIC_KEY option was added.