1--TEST--
2ldap_free_result() - Basic ldap_free_result tests
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, $base);
15$result = ldap_search($link, "$base", "(objectclass=person)");
16var_dump(ldap_free_result($result));
17?>
18--CLEAN--
19<?php
20include "connect.inc";
21
22$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version);
23remove_dummy_data($link, $base);
24?>
25--EXPECT--
26bool(true)
27