php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79187 ldap_parse_result return error
Submitted: 2020-01-29 07:14 UTC Modified: -
From: angel dot castellanos at audisec dot es Assigned:
Status: Open Package: LDAP related
PHP Version: 7.4.2 OS: CentOS 7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2020-01-29 07:14 UTC] angel dot castellanos at audisec dot es
Description:
------------
---
From manual page: https://php.net/function.ldap-parse-result
---
We are trying to implement the pagination in the ldap_search method after the ldap_control_paged_result_response() and ldap_control_paged_result() methods are deprecated using example number 5 that appears at https://doc.bccnsoft.com/docs/php-docs-7.4-en/ldap.examples-controls.html.

When we use the ldap_parse_result method to extract the information from the result of ldap_search, we see that the $controls object has been updated and contains the correct cookie value, but the page size value appears as 0.

Is this correct?

Shouldn't it contain the page size value of the control that is used in ldap_search?



Expected result:
----------------
The expected result is that the $controls object contains the page size used.

Actual result:
--------------
The current result is that the $ controls object contains page size 0.

Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jul 12 12:01:25 2020 UTC