Skip to content

[Ldap] Adapter\ExtLdap\Connection : error numbers in class constants should be integers ? #36327

@hedus

Description

@hedus

Symfony version(s) affected: 4.4+

Description
Commit identified : symfony/ldap@ebc066b#diff-417a42cf16696cf4f1941a331a2007f9
Manual page : https://www.php.net/manual/en/function.ldap-errno.php
Apparently, only the ConnectionException is thrown.

Possible Solution
Use the hexadecimal notation :

private const LDAP_INVALID_CREDENTIALS = 0x31;
private const LDAP_TIMEOUT = 0x55;
private const LDAP_ALREADY_EXISTS = 0x44;

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions