ldap_errno
PHP 4, PHP 5, PHP 7, PHP 8
ldap_errno - Return the LDAP error number of the last LDAP command
Manual
ldap_errno(
LDAP\Connection$ldap ): int
Returns the standardized error number returned by the last LDAP command. This number can be converted into a textual error message using ldap_err2str.
Parameters
- ldap
-
An LDAP\Connection instance, returned by ldap_connect.
Return Values
Return the LDAP error number of the last LDAP command for this link.
Changelog
Version | Description |
8.1.0 | The ldap parameter expects an LDAP\Connection instance now; previously, a resource was expected. |