note 119433 added to function.ldap-control-paged-result
| From: | steven_bauman at outlook dot com | Date: | Fri, 03 Jun 2016 16:58:53 +0000 |
| Subject: | note 119433 added to function.ldap-control-paged-result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-205660@lists.php.net to get a copy of this message | ||
While another note suggests resetting the control paged result by passing in
0 (zero),
it actually still prevents any further queries being ran during the same request.
You actually need to set it to a large number to run further queries it seems. For example:
<?php
ldap_control_paged_result($connection, 100, true, $cookie);
// Run the search
...
// What is supposed to work (reset)
ldap_control_paged_result($connection, 0, false, $cookie);
// What actually works
ldap_control_paged_result($connection, 1000, false, $cookie);
?>
In the above method, 1000 is just a placeholder, but this seems to actually **limit** further
queries to this amount of results, so if you set it to 1, then you'll only receive
**one** result for any further queries during the same request.
----
Server IP: 72.52.91.14
Probable Submitter: 72.38.239.2
----
Manual Page -- http://php.net/manual/en/function.ldap-control-paged-result.php
Edit -- https://master.php.net/note/edit/119433
Del: integrated -- https://master.php.net/note/delete/119433/integrated
Del: useless -- https://master.php.net/note/delete/119433/useless
Del: bad code -- https://master.php.net/note/delete/119433/bad+code
Del: spam -- https://master.php.net/note/delete/119433/spam
Del: non-english -- https://master.php.net/note/delete/119433/non-english
Del: in docs -- https://master.php.net/note/delete/119433/in+docs
Del: other reasons-- https://master.php.net/note/delete/119433
Reject -- https://master.php.net/note/reject/119433
Search -- https://master.php.net/manage/user-notes.php