summaryrefslogtreecommitdiff
path: root/ext/ldap/tests/ldap_get_attributes_error.phpt
blob: 465ba4fd72e21b8a5db2131367c41597b08c7b3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
ldap_get_attributes() - Testing ldap_get_attributes() 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_attributes($link));
var_dump(ldap_get_attributes($link, $link));
?>
===DONE===
--EXPECTF--
Warning: ldap_get_attributes() expects exactly 2 parameters, 1 given in %s on line %d
NULL

Warning: ldap_get_attributes(): supplied resource is not a valid ldap result entry resource in %s on line %d
bool(false)
===DONE===