Bug #79187 [NEW]: ldap_parse_result return error
| From: | angel dot castellanos at audisec dot es | Date: | Wed, 29 Jan 2020 07:14:02 +0000 |
| Subject: | Bug #79187 [NEW]: ldap_parse_result return error | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225206@lists.php.net to get a copy of this message | ||
From: angel dot castellanos at audisec dot es
Operating system: CentOS 7
PHP version: 7.4.2
Package: LDAP related
Bug Type: Bug
Bug description:ldap_parse_result return error
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.
--
Edit bug report at https://bugs.php.net/bug.php?id=79187&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79187&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79187&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79187&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79187&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79187&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79187&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79187&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79187&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79187&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79187&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79187&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79187&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79187&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79187&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79187&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79187&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79187&r=mysqlcfg