From:             jd at webkot dot be
Operating system: FreeBSD 4.9
PHP version:      4.3.4
PHP Bug Type:     LDAP related
Bug description:  ldap_search sizelimit output error

Description:
------------
While making a search on LDAP using ldap_search, i got the following
display message if I get too many results :



Warning: ldap_search(): Partial search results returned: Sizelimit
exceeded



Nothing special but the problem is the

ldap_set_option($ds, LDAP_OPT_SIZELIMIT, 50); 

actually limit the number of search results but doesn't prevent to get the
warning (I get the warning even with a limit of 1)



This is not the same bug as Bug #7791, the result limit WORKS but I get a
warning message.



NB: I'm using openldap-client-2.1.27 



Reproduce code:
---------------
$ds=ldap_connect($ip);

ldap_set_option($ds, LDAP_OPT_SIZELIMIT, 50);

$ldapbind = ldap_bind($ds,$log,$pass);

$filter="(cn=*$criteria*)";

$result = ldap_search($ds, $roodn, $filter);

Expected result:
----------------
No Warning at all when LDAP_OPT_SIZELIMIT is set

Actual result:
--------------
Warning: ldap_search(): Partial search results returned: Sizelimit
exceeded



-- 
Edit bug report at http://bugs.php.net/?id=27632&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27632&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27632&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27632&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27632&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27632&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27632&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27632&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27632&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27632&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27632&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27632&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27632&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27632&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27632&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27632&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27632&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27632&r=float

Reply via email to