Skip to content

Fix ldap_count_entries() return value documentation#5218

Open
lacatoire wants to merge 2 commits into
php:masterfrom
lacatoire:document_ldap_count_entries
Open

Fix ldap_count_entries() return value documentation#5218
lacatoire wants to merge 2 commits into
php:masterfrom
lacatoire:document_ldap_count_entries

Conversation

@lacatoire

@lacatoire lacatoire commented Jan 29, 2026

Copy link
Copy Markdown
Member

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

Reference: https://www.openldap.org/software/man.cgi?query=ldap_count_entries ("If an error occurs in ldap_count_entries(), -1 is returned, and ld_errno is set appropriately.")

Fixes #4683

@lacatoire lacatoire closed this Mar 2, 2026
@lacatoire lacatoire reopened this Apr 22, 2026
Comment thread reference/ldap/functions/ldap-count-entries.xml Outdated
Comment thread reference/ldap/functions/ldap-count-entries.xml Outdated
@lacatoire lacatoire force-pushed the document_ldap_count_entries branch from 2367fa6 to ae3a143 Compare June 23, 2026 14:12
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

2 participants