array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.ldap-error.php', 1 => 'ldap_error', ), 'up' => array ( 0 => 'ref.ldap.php', 1 => 'Funções do LDAP', ), 'prev' => array ( 0 => 'function.ldap-errno.php', 1 => 'ldap_errno', ), 'next' => array ( 0 => 'function.ldap-escape.php', 1 => 'ldap_escape', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/ldap/functions/ldap-error.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
ldap_error — Return the LDAP error message of the last LDAP command
Returns the string error message explaining the error generated by the
last LDAP command for the given ldap
.
While LDAP errno numbers are standardized, different libraries return
different or even localized textual error messages. Never check for a
specific error message text, but always use an error number to check.
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.
Returns string error message.
Versão | Descrição |
---|---|
8.1.0 |
O parâmetro ldap agora espera uma instância de LDAP\Connection;
anteriormente, um resource ldap link válido era esperado.
|