Bug #19507 [Ver->Csd]: Net_LDAP2_Search::entries() removes entries from the search object
| From: | beni@php.net | Date: | Thu, 03 Jan 2013 08:54:20 +0000 |
| Subject: | Bug #19507 [Ver->Csd]: 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-9446@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: Verified
+Status: Closed
Type: Bug
Package: Net_LDAP2
Operating System: RHEL5
Package Version: 2.0.12
PHP Version: 5.2.14
Assigned To: beni
Roadmap Versions:
New Comment:
-Status: Verified
+Status: Closed
This bug has been fixed in SVN.
If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should
be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Previous Comments:
------------------------------------------------------------------------
[2013-01-03 08:37:41] beni
-Assigned To:
+Assigned To: beni
------------------------------------------------------------------------
[2013-01-03 08:37:35] beni
-Status: Open
+Status: Verified
------------------------------------------------------------------------
[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