男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站

ldap_errno

(PHP 4, PHP 5, PHP 7, PHP 8)

ldap_errnoReturn the LDAP error number of the last LDAP command

說(shuō)明

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().

參數

ldap

通過(guò) ldap_connect() 返回的 LDAP\Connection 實(shí)例。

返回值

Return the LDAP error number of the last LDAP command for this link.

更新日志

版本 說(shuō)明
8.1.0 現在 ldap 參數接受 LDAP\Connection 實(shí)例,之前接受 資源(resource)。

范例

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.

示例 #1 Generating and catching an error

<?php
// This example contains an error, which we will catch.
$ld ldap_connect("localhost");
$bind ldap_bind($ld);
// syntax error in filter expression (errno 87),
// must be "objectclass=*" to work.
$res =  @ldap_search($ld"o=Myorg, c=DE""objectclass");
if (!
$res) {
    echo 
"LDAP-Errno: " ldap_errno($ld) . "<br />\n";
    echo 
"LDAP-Error: " ldap_error($ld) . "<br />\n";
    die(
"Argh!<br />\n");
}
$info ldap_get_entries($ld$res);
echo 
$info["count"] . " matching entries.<br />\n";
?>

參見(jiàn)

  • ldap_err2str() - Convert LDAP error number into string error message
  • ldap_error() - Return the LDAP error message of the last LDAP command

男女疯狂一边摸一边做羞羞视频|啊好深好硬快点用力别停动态图|亚洲一区无码中文字幕|特级无码毛片免费视频播放▽|久久狠狠躁免费观看|国内精品久久久久久网站