--TEST-- ldap_search() bug 48441 - options persists after specifying them in ldap_search --CREDITS-- Patrick Allaert --SKIPIF-- --FILE-- ===DONE=== --CLEAN-- --EXPECTF-- resource(%d) of type (ldap result) array(4) { ["count"]=> int(3) [0]=> array(4) { ["sn"]=> array(2) { ["count"]=> int(1) [0]=> string(7) "testSN1" } [0]=> string(2) "sn" ["count"]=> int(1) ["dn"]=> string(%d) "cn=userA,%s" } [1]=> array(4) { ["sn"]=> array(2) { ["count"]=> int(1) [0]=> string(7) "testSN2" } [0]=> string(2) "sn" ["count"]=> int(1) ["dn"]=> string(%d) "cn=userB,%s" } [2]=> array(4) { ["sn"]=> array(2) { ["count"]=> int(1) [0]=> string(7) "testSN3" } [0]=> string(2) "sn" ["count"]=> int(1) ["dn"]=> string(%d) "cn=userC,cn=userB,%s" } } Warning: ldap_search(): Partial search results returned: Sizelimit exceeded in %s on line %d resource(%d) of type (ldap result) array(2) { ["count"]=> int(1) [0]=> array(4) { ["sn"]=> array(1) { ["count"]=> int(0) } [0]=> string(2) "sn" ["count"]=> int(1) ["dn"]=> string(%d) "cn=userA,%s" } } resource(%d) of type (ldap result) array(4) { ["count"]=> int(3) [0]=> array(4) { ["sn"]=> array(2) { ["count"]=> int(1) [0]=> string(7) "testSN1" } [0]=> string(2) "sn" ["count"]=> int(1) ["dn"]=> string(%d) "cn=userA,%s" } [1]=> array(4) { ["sn"]=> array(2) { ["count"]=> int(1) [0]=> string(7) "testSN2" } [0]=> string(2) "sn" ["count"]=> int(1) ["dn"]=> string(%d) "cn=userB,%s" } [2]=> array(4) { ["sn"]=> array(2) { ["count"]=> int(1) [0]=> string(7) "testSN3" } [0]=> string(2) "sn" ["count"]=> int(1) ["dn"]=> string(%d) "cn=userC,cn=userB,%s" } } ===DONE===