PHP - Manual: ldap_count_references
2025-10-31
(PHP 8)
ldap_count_references — Counts the number of references in a search result
Counts the number of references in a search result.
ldap通过 ldap_connect() 返回的 LDAP\Connection 实例。
result通过 ldap_list() 或者 ldap_search() 返回的 LDAP\Result 实例。
Returns the number of references in a search result.
| 版本 | 说明 | 
|---|---|
| 8.1.0 | 现在 ldap参数接受 LDAP\Connection
  实例,之前接受有效的ldap linkresource。 | 
| 8.1.0 | The resultparameter expects an LDAP\Result
  instance now; previously, a validldap resultresource was expected. | 
官方地址:https://www.php.net/manual/en/function.ldap-count-references.php