Skip to content

PDO MySQL constant documentation issues #1392

Closed
@AndrolGenhald

Description

@AndrolGenhald

The PDO MySQL constant documentation is inconsistent with the actual constants defined.

PDO::MYSQL_ATTR_SERVER_PUBLIC_KEY exists but is not documented.

PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY and PDO::MYSQL_ATTR_INIT_COMMAND are documented as having type string but are actually ints.

PDO::MYSQL_ATTR_LOCAL_INFILE is documented to be available as of PHP 8.1.0, but it's available in earlier versions. Meanwhile, PDO::MYSQL_ATTR_LOCAL_INFILE_DIRECTORY has no version note, but it's not available until PHP 8.1.0. This seems like the version documentation got mixed up and put on the wrong constant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Extension: pdoAll PDO related doc issuesbugDocumentation contains incorrect informationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions