blob: e74eacf008a841e638e1455a0124a62898fee5f0 (
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_error() - ldap_error() operation that should fail
--CREDITS--
Patrick Allaert <patrickallaert@php.net>
# Belgian PHP Testfest 2009
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
// Too few parameters
var_dump(ldap_error());
// Too many parameters
var_dump(ldap_error(null, null));
?>
===DONE===
--EXPECTF--
Warning: ldap_error() expects exactly 1 parameter, 0 given in %s on line %d
NULL
Warning: ldap_error() expects exactly 1 parameter, 2 given in %s on line %d
NULL
===DONE===
|