[doc-en] master: ext/mysqli Document MYSQLI_OPT_COMPRESS (#6142)

From: Date: Tue, 24 Nov 2026 16:48:59 +0000
Subject: [doc-en] master: ext/mysqli Document MYSQLI_OPT_COMPRESS (#6142)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-24009@lists.php.net to get a copy of this message
Author: Malek Kadri (malekkadri) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2026-11-24T16:48:55Z Commit: https://github.com/php/doc-en/commit/b9b0211360929298a197a5388664d511d68e94cc Raw diff: https://github.com/php/doc-en/commit/b9b0211360929298a197a5388664d511d68e94cc.diff ext/mysqli Document MYSQLI_OPT_COMPRESS (#6142) Changed paths: M reference/mysqli/constants.xml M reference/mysqli/mysqli/options.xml Diff: diff --git a/reference/mysqli/constants.xml b/reference/mysqli/constants.xml index a0d19b53099d..878ba495dff2 100644 --- a/reference/mysqli/constants.xml +++ b/reference/mysqli/constants.xml @@ -64,6 +64,19 @@ </para> </listitem> </varlistentry> + <varlistentry xml:id="constant.mysqli-opt-compress"> + <term> + <constant>MYSQLI_OPT_COMPRESS</constant> + (<type>int</type>) + </term> + <listitem> + <simpara> + Controls whether network communication compression is used. + Can be used with <function>mysqli_options</function>. + Available as of PHP 8.6.0. + </simpara> + </listitem> + </varlistentry> <varlistentry xml:id="constant.mysqli-opt-read-timeout"> <term> <constant>MYSQLI_OPT_READ_TIMEOUT</constant> diff --git a/reference/mysqli/mysqli/options.xml b/reference/mysqli/mysqli/options.xml index 750a1e8b6885..697b8e08922d 100644 --- a/reference/mysqli/mysqli/options.xml +++ b/reference/mysqli/mysqli/options.xml @@ -136,9 +136,11 @@ </entry> </row> <row> - <entry><literal>1</literal></entry> + <entry><constant>MYSQLI_OPT_COMPRESS</constant></entry> <entry> Whether to use network communication compression. + The constant is available as of PHP 8.6.0. Prior to PHP 8.6.0, the value + <literal>1</literal> should be used instead. </entry> </row> </tbody>

« previous php.doc.cvs (#24009) next »