Bug #19507 [Opn->Ver]: Net_LDAP2_Search::entries() removes entries from the search object
| From: | beni@php.net | Date: | Thu, 03 Jan 2013 08:37:35 +0000 |
| Subject: | Bug #19507 [Opn->Ver]: Net_LDAP2_Search::entries() removes entries from the search object | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9444@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19507&edit=1
ID: 19507
Updated by: beni@php.net
Reported By: pear dot php at feystorm dot net
Summary: Net_LDAP2_Search::entries() removes entries from the
search object
-Status: Open
+Status: Verified
Type: Bug
Package: Net_LDAP2
Operating System: RHEL5
Package Version: 2.0.12
PHP Version: 5.2.14
Roadmap Versions:
New Comment:
-Status: Open
+Status: Verified
Previous Comments:
------------------------------------------------------------------------
[2012-07-12 03:33:09] feystorm
Description:
------------
The entries() function of a search object removes the entries
from the object. This prevents multiple calls to entries() from
working. This is also not the behavior that perl's Net::LDAP uses.
Test script:
---------------
$search = $ldap->search('dc=example,dc=com', '(objectClass=*)');
$search->entries();
print_r($search->entries());
Expected result:
----------------
Array
(
[0] => ...
[1] => ...
)
Actual result:
--------------
Array
(
)
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19507&edit=1