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--EXTENSIONS--
7ldap
8--SKIPIF--
9<?php require_once('skipifbindfailure.inc'); ?>
10--FILE--
11<?php
12require "connect.inc";
13
14$link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
15insert_dummy_data($link, $base);
16
17var_dump(
18    ldap_get_entries(
19        $link,
20        ldap_search($link, "$base", "(o=my-unexisting-domain)")
21    )
22);
23?>
24--CLEAN--
25<?php
26require "connect.inc";
27
28$link = ldap_connect_and_bind($uri, $user, $passwd, $protocol_version);
29remove_dummy_data($link, $base);
30?>
31--EXPECT--
32array(1) {
33  ["count"]=>
34  int(0)
35}
36