Test: /ext/ldap/tests/bug48441.phpt - Version 7.4.9-dev        

Bug #48441 ldap_search() sizelimit, timelimit and deref options persist
Submitted: 2009-05-31 21:53:54 Modified: 2009-06-15 15:24:17
From: patrickallaert Assigned: patrickallaert
Status: Closed Package: LDAP related
PHP Version: 5.*, 6CVS (2009-06-01) OS: *

There are 4 different diffs reported by users for this test.

Count Diff
1 (25%)
001+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 48 002+ 003+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 53 004+ 005+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 61 006+ 007+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 68 008+ 009+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 75
1 (25%)
001+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 48 002+ 003+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 53 004+ 005+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 61 006+ 007+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 68 008+ 009+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 75 002- array(4) { 004- int(3) 011+ array(7) { 013+ int(6) 053- } 054- 055- Warning: ldap_search(): Partial search results returned: Sizelimit exceeded in %s on line %d 056- resource(%d) of type (ldap result) 057- array(2) { 058- ["count"]=> 059- int(1) 060- [0]=> 061- array(4) { 062- ["sn"]=> 063- array(1) { 064- ["count"]=> 065- int(0) 062+ [3]=> 063+ array(4) { 064+ ["sn"]=> 065+ array(2) { 066+ ["count"]=> 067+ int(1) 068+ [0]=> 069+ string(3) "zzz" 072- string(%d) "cn=userA,%s" 074- } 075- resource(%d) of type (ldap result) 076- array(4) { 077- ["count"]=> 078- int(3) 079- [0]=> 076+ string(28) "cn=userC,dc=my-domain,dc=com" 078+ [4]=> 085+ string(3) "aaa" 086- string(7) "testSN1" 092+ string(28) "cn=userD,dc=my-domain,dc=com" 093- string(%d) "cn=userA,%s" 094+ [5]=> 095- [1]=> 101+ string(1) "a" 102- string(7) "testSN2" 108+ string(28) "cn=userE,dc=my-domain,dc=com" 109- string(%d) "cn=userB,%s" 110+ } 111+ 112+ Warning: ldap_search(): Partial search results returned: Sizelimit exceeded in %s/bug48441.php on line 15 113+ resource(8) of type (ldap result) 114+ array(2) { 115+ ["count"]=> 116+ int(1) 117+ [0]=> 111- [2]=> 114- array(2) { 116- int(1) 117- [0]=> 118- string(7) "testSN3" 120+ array(1) { 122+ int(0) 125- string(%d) "cn=userC,cn=userB,%s" 128- ===DONE=== 129+ string(28) "cn=userA,dc=my-domain,dc=com" 132+ resource(9) of type (ldap result) 133+ array(7) { 134+ ["count"]=> 135+ int(6) 136+ [0]=> 137+ array(4) { 138+ ["sn"]=> 139+ array(2) { 140+ ["count"]=> 141+ int(1) 142+ [0]=> 143+ string(7) "testSN1" 144+ } 145+ [0]=> 146+ string(2) "sn" 147+ ["count"]=> 148+ int(1) 149+ ["dn"]=> 150+ string(28) "cn=userA,dc=my-domain,dc=com" 151+ } 152+ [1]=> 153+ array(4) { 154+ ["sn"]=> 155+ array(2) { 156+ ["count"]=> 157+ int(1) 158+ [0]=> 159+ string(7) "testSN2" 160+ } 161+ [0]=> 162+ string(2) "sn" 163+ ["count"]=> 164+ int(1) 165+ ["dn"]=> 166+ string(28) "cn=userB,dc=my-domain,dc=com" 167+ } 168+ [2]=> 169+ array(4) { 170+ ["sn"]=> 171+ array(2) { 172+ ["count"]=> 173+ int(1) 174+ [0]=> 175+ string(7) "testSN3" 176+ } 177+ [0]=> 178+ string(2) "sn" 179+ ["count"]=> 180+ int(1) 181+ ["dn"]=> 182+ string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" 183+ } 184+ [3]=> 185+ array(4) { 186+ ["sn"]=> 187+ array(2) { 188+ ["count"]=> 189+ int(1) 190+ [0]=> 191+ string(3) "zzz" 192+ } 193+ [0]=> 194+ string(2) "sn" 195+ ["count"]=> 196+ int(1) 197+ ["dn"]=> 198+ string(28) "cn=userC,dc=my-domain,dc=com" 199+ } 200+ [4]=> 201+ array(4) { 202+ ["sn"]=> 203+ array(2) { 204+ ["count"]=> 205+ int(1) 206+ [0]=> 207+ string(3) "aaa" 208+ } 209+ [0]=> 210+ string(2) "sn" 211+ ["count"]=> 212+ int(1) 213+ ["dn"]=> 214+ string(28) "cn=userD,dc=my-domain,dc=com" 215+ } 216+ [5]=> 217+ array(4) { 218+ ["sn"]=> 219+ array(2) { 220+ ["count"]=> 221+ int(1) 222+ [0]=> 223+ string(1) "a" 224+ } 225+ [0]=> 226+ string(2) "sn" 227+ ["count"]=> 228+ int(1) 229+ ["dn"]=> 230+ string(28) "cn=userE,dc=my-domain,dc=com" 231+ } 232+ } 233+ ===DONE===
1 (25%)
001+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 48 002+ 003+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 68 002- array(4) { 004- int(3) 005+ array(5) { 007+ int(4) 053- } 054- 055- Warning: ldap_search(): Partial search results returned: Sizelimit exceeded in %s on line %d 056- resource(%d) of type (ldap result) 057- array(2) { 058- ["count"]=> 059- int(1) 060- [0]=> 061- array(4) { 062- ["sn"]=> 063- array(1) { 064- ["count"]=> 065- int(0) 056+ [3]=> 057+ array(4) { 058+ ["sn"]=> 059+ array(2) { 060+ ["count"]=> 061+ int(1) 062+ [0]=> 063+ string(3) "zzz" 070+ string(28) "cn=userC,dc=my-domain,dc=com" 072- string(%d) "cn=userA,%s" 073+ 074+ Warning: ldap_search(): Partial search results returned: Sizelimit exceeded in %s/bug48441.php on line 15 076+ array(2) { 076- array(4) { 078+ int(1) 078- int(3) 082+ array(1) { 082- array(2) { 084+ int(0) 084- int(1) 085- [0]=> 086- string(7) "testSN1" 093+ } 094+ resource(9) of type (ldap result) 095+ array(6) { 096+ ["count"]=> 097+ int(5) 098+ [0]=> 095- [1]=> 102- string(7) "testSN2" 105+ string(7) "testSN1" 109- string(%d) "cn=userB,%s" 111- [2]=> 112+ string(28) "cn=userA,dc=my-domain,dc=com" 114+ [1]=> 118- string(7) "testSN3" 121+ string(7) "testSN2" 125- string(%d) "cn=userC,cn=userB,%s" 127- } 128- ===DONE=== 128+ string(28) "cn=userB,dc=my-domain,dc=com" 130+ [2]=> 131+ array(4) { 132+ ["sn"]=> 133+ array(2) { 134+ ["count"]=> 135+ int(1) 136+ [0]=> 137+ string(7) "testSN3" 138+ } 139+ [0]=> 140+ string(2) "sn" 141+ ["count"]=> 142+ int(1) 143+ ["dn"]=> 144+ string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" 145+ } 146+ [3]=> 147+ array(4) { 148+ ["sn"]=> 149+ array(2) { 150+ ["count"]=> 151+ int(1) 152+ [0]=> 153+ string(3) "zzz" 154+ } 155+ [0]=> 156+ string(2) "sn" 157+ ["count"]=> 158+ int(1) 159+ ["dn"]=> 160+ string(28) "cn=userC,dc=my-domain,dc=com" 161+ } 162+ [4]=> 163+ array(4) { 164+ ["sn"]=> 165+ array(2) { 166+ ["count"]=> 167+ int(1) 168+ [0]=> 169+ string(3) "aaa" 170+ } 171+ [0]=> 172+ string(2) "sn" 173+ ["count"]=> 174+ int(1) 175+ ["dn"]=> 176+ string(28) "cn=userD,dc=my-domain,dc=com" 177+ } 178+ } 179+ ===DONE===
1 (25%)
001+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 53 002+ 003+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 61 004+ 005+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 68 006+ 007+ Warning: ldap_add(): Add: Already exists in /home/travis/build/ptomulik/php-src/ext/ldap/tests/connect.inc on line 75 002- array(4) { 004- int(3) 009+ array(6) { 011+ int(5) 053- } 054- 055- Warning: ldap_search(): Partial search results returned: Sizelimit exceeded in %s on line %d 056- resource(%d) of type (ldap result) 057- array(2) { 058- ["count"]=> 059- int(1) 060- [0]=> 061- array(4) { 062- ["sn"]=> 063- array(1) { 064- ["count"]=> 065- int(0) 060+ [3]=> 061+ array(4) { 062+ ["sn"]=> 063+ array(2) { 064+ ["count"]=> 065+ int(1) 066+ [0]=> 067+ string(3) "zzz" 072- string(%d) "cn=userA,%s" 074+ string(28) "cn=userC,dc=my-domain,dc=com" 074- } 075- resource(%d) of type (ldap result) 076- array(4) { 077- ["count"]=> 078- int(3) 079- [0]=> 076+ [4]=> 083+ string(3) "aaa" 086- string(7) "testSN1" 090+ string(28) "cn=userD,dc=my-domain,dc=com" 092+ } 093+ 094+ Warning: ldap_search(): Partial search results returned: Sizelimit exceeded in %s/bug48441.php on line 15 095+ resource(8) of type (ldap result) 096+ array(2) { 097+ ["count"]=> 098+ int(1) 099+ [0]=> 093- string(%d) "cn=userA,%s" 095- [1]=> 098- array(2) { 100- int(1) 101- [0]=> 102- string(7) "testSN2" 102+ array(1) { 104+ int(0) 109- string(%d) "cn=userB,%s" 111+ string(28) "cn=userA,dc=my-domain,dc=com" 111- [2]=> 113+ } 114+ resource(9) of type (ldap result) 115+ array(7) { 116+ ["count"]=> 117+ int(6) 118+ [0]=> 118- string(7) "testSN3" 125+ string(7) "testSN1" 125- string(%d) "cn=userC,cn=userB,%s" 127- } 128- ===DONE=== 132+ string(28) "cn=userA,dc=my-domain,dc=com" 134+ [1]=> 135+ array(4) { 136+ ["sn"]=> 137+ array(2) { 138+ ["count"]=> 139+ int(1) 140+ [0]=> 141+ string(7) "testSN2" 142+ } 143+ [0]=> 144+ string(2) "sn" 145+ ["count"]=> 146+ int(1) 147+ ["dn"]=> 148+ string(28) "cn=userB,dc=my-domain,dc=com" 149+ } 150+ [2]=> 151+ array(4) { 152+ ["sn"]=> 153+ array(2) { 154+ ["count"]=> 155+ int(1) 156+ [0]=> 157+ string(7) "testSN3" 158+ } 159+ [0]=> 160+ string(2) "sn" 161+ ["count"]=> 162+ int(1) 163+ ["dn"]=> 164+ string(37) "cn=userC,cn=userB,dc=my-domain,dc=com" 165+ } 166+ [3]=> 167+ array(4) { 168+ ["sn"]=> 169+ array(2) { 170+ ["count"]=> 171+ int(1) 172+ [0]=> 173+ string(3) "zzz" 174+ } 175+ [0]=> 176+ string(2) "sn" 177+ ["count"]=> 178+ int(1) 179+ ["dn"]=> 180+ string(28) "cn=userC,dc=my-domain,dc=com" 181+ } 182+ [4]=> 183+ array(4) { 184+ ["sn"]=> 185+ array(2) { 186+ ["count"]=> 187+ int(1) 188+ [0]=> 189+ string(3) "aaa" 190+ } 191+ [0]=> 192+ string(2) "sn" 193+ ["count"]=> 194+ int(1) 195+ ["dn"]=> 196+ string(28) "cn=userD,dc=my-domain,dc=com" 197+ } 198+ [5]=> 199+ array(4) { 200+ ["sn"]=> 201+ array(2) { 202+ ["count"]=> 203+ int(1) 204+ [0]=> 205+ string(1) "a" 206+ } 207+ [0]=> 208+ string(2) "sn" 209+ ["count"]=> 210+ int(1) 211+ ["dn"]=> 212+ string(28) "cn=userE,dc=my-domain,dc=com" 213+ } 214+ } 215+ ===DONE===