#48441 [Opn->Bgs]: ldap_search() makes sizelimit, timelimit and deref options persistent
| From: | jani@php.net | Date: | Mon, 01 Jun 2009 09:02:40 +0000 |
| Subject: | #48441 [Opn->Bgs]: ldap_search() makes sizelimit, timelimit and deref options persistent | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-137932@lists.php.net to get a copy of this message | ||
ID: 48441
Updated by: jani@php.net
Reported By: patrickallaert@php.net
-Status: Open
+Status: Bogus
Bug Type: LDAP related
PHP Version: 5.3.0RC2
Assigned To: patrickallaert
New Comment:
How about not. These kind of "magic" things tend to cause bugs that are
next to impossible to find.
Previous Comments:
------------------------------------------------------------------------
[2009-05-31 21:53:54] patrickallaert@php.net
Description:
------------
Specifiying sizelimit, timelimit and deref options in ldap_search()
makes them persistent for next call to ldap_search().
<?php
// ldap_search() with sizelimit, timelimit and deref options
ldap_search($link, $dn, $filter, $attrs, 1, 1, 1, LDAP_DEREF_ALWAYS);
// Default value not used for sizelimit, timelimit and deref, previous
one used.
// Returns same truncated (due to sizelimit) results as previous call
ldap_search($link, $dn, $filter, $attrs, 1);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48441&edit=1