ID: 27632 Updated by: [EMAIL PROTECTED] Reported By: jd at webkot dot be -Status: Open +Status: Bogus Bug Type: LDAP related Operating System: FreeBSD 4.9 PHP Version: 4.3.4 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Without this warning the script author wouldn't know that there are more results avaliable. If it is common for your script to exceed the maximum allowed search result limit, simply block the error with '@'. Previous Comments: ------------------------------------------------------------------------ [2004-03-18 03:22:07] jd at webkot dot be 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 this bug report at http://bugs.php.net/?id=27632&edit=1