--TEST--
ldap_get_dn() - Testing ldap_get_dn() that should fail
--CREDITS--
Patrick Allaert <patrickallaert@php.net>
# Belgian PHP Testfest 2009
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
require "connect.inc";
$link = ldap_connect($host, $port);
var_dump(ldap_get_dn($link));
var_dump(ldap_get_dn($link, $link));
?>
===DONE===
--EXPECTF--
Warning: ldap_get_dn() expects exactly 2 parameters, 1 given in %s on line %d
NULL
Warning: ldap_get_dn(): supplied resource is not a valid ldap result entry resource in %s on line %d
bool(false)
===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>