PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/ldap/tests/ldap_search_variation6.phpt ('ldap_search() test')

Script

1: <?php
2:
include "connect.inc";
3:
4:
$link ldap_connect_and_bind($host$port$user$passwd$protocol_version);
5:
insert_dummy_data($link$base);
6:
7:
$dn "$base";
8:
$filter "(objectclass=person)";
9:
10:
var_dump(
11:     
$result ldap_search(array($link$link), $dn$filter),
12:     
$result0 ldap_get_entries($link$result[0]),
13:     
ldap_get_entries($link$result[1]) === $result0
14:
);
15:
var_dump(
16:     
$result ldap_search(array($link$link), null$filter),
17:     
ldap_get_entries($link$result[0]),
18:     
ldap_get_entries($link$result[1])
19: );
20:
var_dump(
21:     
$result ldap_search(array($link$link), null, array($filter$filter)),
22:     
ldap_get_entries($link$result[0]),
23:     
ldap_get_entries($link$result[1])
24: );
25:
?>
26:
===DONE===
27:

Expected

array(2) {
  [0]=>
  resource(%d) of type (ldap result)
  [1]=>
  resource(%d) of type (ldap result)
}
array(4) {
  ["count"]=>
  int(3)
  [0]=>
  array(14) {
    ["objectclass"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(6) "person"
    }
    [0]=>
    string(11) "objectclass"
    ["cn"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(5) "userA"
    }
    [1]=>
    string(2) "cn"
    ["sn"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(7) "testSN1"
    }
    [2]=>
    string(2) "sn"
    ["userpassword"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(4) "oops"
    }
    [3]=>
    string(12) "userpassword"
    ["telephonenumber"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(14) "xx-xx-xx-xx-xx"
    }
    [4]=>
    string(15) "telephonenumber"
    ["description"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(6) "user A"
    }
    [5]=>
    string(11) "description"
    ["count"]=>
    int(6)
    ["dn"]=>
    string(%d) "cn=userA,%s"
  }
  [1]=>
  array(12) {
    ["objectclass"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(6) "person"
    }
    [0]=>
    string(11) "objectclass"
    ["cn"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(5) "userB"
    }
    [1]=>
    string(2) "cn"
    ["sn"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(7) "testSN2"
    }
    [2]=>
    string(2) "sn"
    ["userpassword"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(15) "oopsIDitItAgain"
    }
    [3]=>
    string(12) "userpassword"
    ["description"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(6) "user B"
    }
    [4]=>
    string(11) "description"
    ["count"]=>
    int(5)
    ["dn"]=>
    string(%d) "cn=userB,%s"
  }
  [2]=>
  array(10) {
    ["objectclass"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(6) "person"
    }
    [0]=>
    string(11) "objectclass"
    ["cn"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(5) "userC"
    }
    [1]=>
    string(2) "cn"
    ["sn"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(7) "testSN3"
    }
    [2]=>
    string(2) "sn"
    ["userpassword"]=>
    array(2) {
      ["count"]=>
      int(1)
      [0]=>
      string(17) "0r1g1na1 passw0rd"
    }
    [3]=>
    string(12) "userpassword"
    ["count"]=>
    int(4)
    ["dn"]=>
    string(%d) "cn=userC,cn=userB,%s"
  }
}
bool(true)
array(2) {
  [0]=>
  resource(%d) of type (ldap result)
  [1]=>
  resource(%d) of type (ldap result)
}
array(1) {
  ["count"]=>
  int(0)
}
array(1) {
  ["count"]=>
  int(0)
}
array(2) {
  [0]=>
  resource(%d) of type (ldap result)
  [1]=>
  resource(%d) of type (ldap result)
}
array(1) {
  ["count"]=>
  int(0)
}
array(1) {
  ["count"]=>
  int(0)
}
===DONE===

Output

Warning: ldap_add(): Add: No such object in /var/php_gcov/PHP_HEAD/ext/ldap/tests/connect.inc on line 28

Warning: ldap_add(): Add: No such object in /var/php_gcov/PHP_HEAD/ext/ldap/tests/connect.inc on line 32

Warning: ldap_add(): Add: No such object in /var/php_gcov/PHP_HEAD/ext/ldap/tests/connect.inc on line 40

Warning: ldap_add(): Add: No such object in /var/php_gcov/PHP_HEAD/ext/ldap/tests/connect.inc on line 47
array(2) {
  [0]=>
  resource(6) of type (ldap result)
  [1]=>
  resource(7) of type (ldap result)
}
array(1) {
  ["count"]=>
  int(0)
}
bool(true)
array(2) {
  [0]=>
  resource(8) of type (ldap result)
  [1]=>
  resource(9) of type (ldap result)
}
array(1) {
  ["count"]=>
  int(0)
}
array(1) {
  ["count"]=>
  int(0)
}
array(2) {
  [0]=>
  resource(10) of type (ldap result)
  [1]=>
  resource(11) of type (ldap result)
}
array(1) {
  ["count"]=>
  int(0)
}
array(1) {
  ["count"]=>
  int(0)
}
===DONE===

Diff

001+ Warning: ldap_add(): Add: No such object in /var/php_gcov/PHP_HEAD/ext/ldap/tests/connect.inc on line 28
002+ 
003+ Warning: ldap_add(): Add: No such object in /var/php_gcov/PHP_HEAD/ext/ldap/tests/connect.inc on line 32
004+ 
005+ Warning: ldap_add(): Add: No such object in /var/php_gcov/PHP_HEAD/ext/ldap/tests/connect.inc on line 40
006+ 
007+ Warning: ldap_add(): Add: No such object in /var/php_gcov/PHP_HEAD/ext/ldap/tests/connect.inc on line 47
007- array(4) {
009-   int(3)
011-   array(14) {
012-     ["objectclass"]=>
013-     array(2) {
014-       ["count"]=>
015-       int(1)
016-       [0]=>
017-       string(6) "person"
018-     }
019-     [0]=>
020-     string(11) "objectclass"
021-     ["cn"]=>
022-     array(2) {
023-       ["count"]=>
024-       int(1)
025-       [0]=>
026-       string(5) "userA"
027-     }
028-     [1]=>
029-     string(2) "cn"
030-     ["sn"]=>
031-     array(2) {
032-       ["count"]=>
033-       int(1)
034-       [0]=>
035-       string(7) "testSN1"
036-     }
037-     [2]=>
014+ array(1) {
016+   int(0)
017+ }
018+ bool(true)
019+ array(2) {
021+   resource(8) of type (ldap result)
022+   [1]=>
023+   resource(9) of type (ldap result)
024+ }
025+ array(1) {
026+   ["count"]=>
027+   int(0)
028+ }
029+ array(1) {
030+   ["count"]=>
031+   int(0)
032+ }
033+ array(2) {
034+   [0]=>
035+   resource(10) of type (ldap result)
036+   [1]=>
037+   resource(11) of type (ldap result)
038+ }
039+ array(1) {
040+   ["count"]=>
041+   int(0)
042+ }
043+ array(1) {
044+   ["count"]=>
045+   int(0)
046+ }
047+ ===DONE===
038-     string(2) "sn"
039-     ["userpassword"]=>
040-     array(2) {
041-       ["count"]=>
042-       int(1)
043-       [0]=>
044-       string(4) "oops"
045-     }
046-     [3]=>
047-     string(12) "userpassword"
048-     ["telephonenumber"]=>
049-     array(2) {
050-       ["count"]=>
051-       int(1)
052-       [0]=>
053-       string(14) "xx-xx-xx-xx-xx"
054-     }
055-     [4]=>
056-     string(15) "telephonenumber"
057-     ["description"]=>
058-     array(2) {
059-       ["count"]=>
060-       int(1)
061-       [0]=>
062-       string(6) "user A"
063-     }
064-     [5]=>
065-     string(11) "description"
066-     ["count"]=>
067-     int(6)
068-     ["dn"]=>
069-     string(%d) "cn=userA,%s"
070-   }
071-   [1]=>
072-   array(12) {
073-     ["objectclass"]=>
074-     array(2) {
075-       ["count"]=>
076-       int(1)
077-       [0]=>
078-       string(6) "person"
079-     }
080-     [0]=>
081-     string(11) "objectclass"
082-     ["cn"]=>
083-     array(2) {
084-       ["count"]=>
085-       int(1)
086-       [0]=>
087-       string(5) "userB"
088-     }
089-     [1]=>
090-     string(2) "cn"
091-     ["sn"]=>
092-     array(2) {
093-       ["count"]=>
094-       int(1)
095-       [0]=>
096-       string(7) "testSN2"
097-     }
098-     [2]=>
099-     string(2) "sn"
100-     ["userpassword"]=>
101-     array(2) {
102-       ["count"]=>
103-       int(1)
104-       [0]=>
105-       string(15) "oopsIDitItAgain"
106-     }
107-     [3]=>
108-     string(12) "userpassword"
109-     ["description"]=>
110-     array(2) {
111-       ["count"]=>
112-       int(1)
113-       [0]=>
114-       string(6) "user B"
115-     }
116-     [4]=>
117-     string(11) "description"
118-     ["count"]=>
119-     int(5)
120-     ["dn"]=>
121-     string(%d) "cn=userB,%s"
122-   }
123-   [2]=>
124-   array(10) {
125-     ["objectclass"]=>
126-     array(2) {
127-       ["count"]=>
128-       int(1)
129-       [0]=>
130-       string(6) "person"
131-     }
132-     [0]=>
133-     string(11) "objectclass"
134-     ["cn"]=>
135-     array(2) {
136-       ["count"]=>
137-       int(1)
138-       [0]=>
139-       string(5) "userC"
140-     }
141-     [1]=>
142-     string(2) "cn"
143-     ["sn"]=>
144-     array(2) {
145-       ["count"]=>
146-       int(1)
147-       [0]=>
148-       string(7) "testSN3"
149-     }
150-     [2]=>
151-     string(2) "sn"
152-     ["userpassword"]=>
153-     array(2) {
154-       ["count"]=>
155-       int(1)
156-       [0]=>
157-       string(17) "0r1g1na1 passw0rd"
158-     }
159-     [3]=>
160-     string(12) "userpassword"
161-     ["count"]=>
162-     int(4)
163-     ["dn"]=>
164-     string(%d) "cn=userC,cn=userB,%s"
165-   }
166- }
167- bool(true)
168- array(2) {
169-   [0]=>
170-   resource(%d) of type (ldap result)
171-   [1]=>
172-   resource(%d) of type (ldap result)
173- }
174- array(1) {
175-   ["count"]=>
176-   int(0)
177- }
178- array(1) {
179-   ["count"]=>
180-   int(0)
181- }
182- array(2) {
183-   [0]=>
184-   resource(%d) of type (ldap result)
185-   [1]=>
186-   resource(%d) of type (ldap result)
187- }
188- array(1) {
189-   ["count"]=>
190-   int(0)
191- }
192- array(1) {
193-   ["count"]=>
194-   int(0)
195- }
196- ===DONE===

 

Generated at Sat, 27 Jun 2015 09:41:26 +0000 (3 days ago)

Copyright © 2005-2015 The PHP Group
All rights reserved.