Skip to content

Fix ldap_count_entries() return value documentation#5218

Open
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:document_ldap_count_entries
Open

Fix ldap_count_entries() return value documentation#5218
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:document_ldap_count_entries

Conversation

@lacatoire
Copy link
Contributor

@lacatoire lacatoire commented Jan 29, 2026

The manual stated that ldap_count_entries() returns false on failure.
According to OpenLDAP documentation and PHP implementation, the function returns -1 on error.
This PR corrects the return value documentation.

Fixes #4683

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ldap_count_entries() return type should be -1 on error

1 participant