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===DONE=== 19--CLEAN-- 20<?php 21include "connect.inc"; 22 23$link = ldap_connect_and_bind($host, $port, $user, $passwd, $protocol_version); 24remove_dummy_data($link, $base); 25?> 26--EXPECT-- 27bool(true) 28===DONE=== 29