Bug #74023 [NEW]: ldap_control_paged_result cannot be undone

From: Date: Tue, 31 Jan 2017 15:00:52 +0000
Subject: Bug #74023 [NEW]: ldap_control_paged_result cannot be undone
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-207070@lists.php.net to get a copy of this message
From: markusu49 at aol dot com Operating system: linux (Ubuntu Server 16.04.1) PHP version: 7.1.1 Package: LDAP related Bug Type: Bug Bug description:ldap_control_paged_result cannot be undone Description: ------------ It's not possible to reset ldap_control_paged_result. Should work with a pagesize of 0. See here: https://www.ietf.org/rfc/rfc2696.txt "A sequence of paged search requests is abandoned by the client sending a search request containing a pagedResultsControl with the size set to zero (0) and the cookie set to the last cookie returned by the server." The comments in the docs point this out, too: http://php.net/manual/de/function.ldap-control-paged-result.php#119433 LDAP servers behave differently, OpenLDAP even reacts with a segfault. Test script: --------------- https://github.com/markusu49/ldap-pagination/blob/master/ldap.php Expected result: ---------------- ldap_search returns all entries (eventually limited by server) Actual result: -------------- ldap_search returns 0 entries with AD, OpenLDAP segfaults -- Edit bug report at https://bugs.php.net/bug.php?id=74023&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74023&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74023&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74023&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74023&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74023&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74023&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74023&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74023&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74023&r=support Expected behavior: https://bugs.php.net/fix.php?id=74023&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74023&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74023&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74023&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74023&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74023&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74023&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74023&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74023&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74023&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74023&r=mysqlcfg

« previous php.bugs (#207070) next »