Skip to content

Mysqli option says "1" instead of "MYSQLI_OPT_COMPRESS" #5727

Open

Description

@Sjord

From manual page: https://php.net/mysqli.options


option
The option that you want to set. It can be one of the following values:

...
1 Whether to use network communication compression.

Instead of 1 it should probably say MYSQLI_OPT_COMPRESS.

Activity

  1. Sjord commented on Jul 31, 2026

    @Sjord
    ContributorAuthor

    @kamil-tekiela Could you take a look at this issue? Was the literal 1 intentional?

  2. Sjord commented on Jul 31, 2026

    @Sjord
    ContributorAuthor
  3. kamil-tekiela commented on Jul 31, 2026

    @kamil-tekiela
    Member

    Yes, yes it was intentional. See #5174 and php/php-src#20987

  4. added this to the PHP 8.6 milestone on Jul 31, 2026
  5. lacatoire commented on Oct 26, 2026

    @lacatoire
    Member

    No constant for compression in released versions, so the option is documented by its value. Closing. If you wish to complete with a PR, you are free to submit one.

  6. kamil-tekiela commented on Oct 26, 2026

    @kamil-tekiela
    Member

    Reopening this as PHP 8.6 will be released soon and this will have to be documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions