1--TEST--
2Test ldap_get_entries() function - variation: used on empty search
3--CREDITS--
4Patrick Allaert <patrickallaert@php.net>
5# Belgian PHP Testfest 2009
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8<?php require_once('skipifbindfailure.inc'); ?>
9--FILE--
10<?php
11require "connect.inc";
12
13$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
14insert_dummy_data($link);
15
16var_dump(
17	ldap_get_entries(
18		$link,
19		ldap_search($link, "dc=my-domain,dc=com", "(o=my-unexisting-domain)")
20	)
21);
22?>
23===DONE===
24--CLEAN--
25<?php
26require "connect.inc";
27
28$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
29remove_dummy_data($link);
30?>
31--EXPECT--
32array(1) {
33  ["count"]=>
34  int(0)
35}
36===DONE===
37