Skip to content

Commit 724ff60

Browse files
Add MYSQLI_OPT_COMPRESS (php#20987)
1 parent 8f55b08 commit 724ff60

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

UPGRADING

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ PHP 8.6 UPGRADE NOTES
110110
- Hash:
111111
. The bundled version of xxHash was upgraded to 0.8.2.
112112

113+
- mysqli
114+
. Added new constant MYSQLI_OPT_COMPRESS.
115+
113116
========================================
114117
10. New Global Constants
115118
========================================

ext/mysqli/mysqli.stub.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@
5858
* @cvalue MYSQL_OPT_SSL_VERIFY_SERVER_CERT
5959
*/
6060
const MYSQLI_OPT_SSL_VERIFY_SERVER_CERT = UNKNOWN;
61+
/**
62+
* @var int
63+
* @cvalue MYSQL_OPT_COMPRESS
64+
*/
65+
const MYSQLI_OPT_COMPRESS = UNKNOWN;
6166

6267
/**
6368
* @var int

ext/mysqli/mysqli_arginfo.h

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/mysqli/tests/mysqli_constants.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ $expected_constants = array(
4747
"MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED"=> true,
4848
"MYSQLI_SERVER_QUERY_NO_INDEX_USED" => true,
4949
"MYSQLI_OPT_LOAD_DATA_LOCAL_DIR" => true,
50+
"MYSQLI_OPT_COMPRESS" => true,
5051
"MYSQLI_IS_MARIADB" => true,
5152

5253
"MYSQLI_TYPE_DECIMAL" => true,

0 commit comments

Comments
 (0)