PHP. Руководство по PHP. 2005
ldap_errno
ldap_errno
Description
int ldap_errno (resource link_identifier)Return the LDAP error number of the last LDAP command for this
link.
This function returns the standardized error number returned by
the last LDAP command for the given
link_identifier. This number
can be converted into a textual error message using
Unless you lower your warning level in your php.ini sufficiently
or prefix your LDAP commands with @ (at) characters to suppress
warning output, the errors generated will also show up in your
HTML output.
See also ldap_err2str() and
ldap_err2str
ldap_error