1--TEST--
2ldap_connect() - Connection errors
3--CREDITS--
4Patrick Allaert <patrickallaert@php.net>
5# Belgian PHP Testfest 2009
6--INI--
7ldap.max_links=1
8--EXTENSIONS--
9ldap
10--FILE--
11<?php
12require "connect.inc";
13
14// too many arguments
15var_dump(ldap_connect("ldap://$host:$port/$base"));
16
17$links = array();
18$links[0] = ldap_connect($uri);
19$links[1] = ldap_connect($uri);
20?>
21--EXPECTF--
22Warning: ldap_connect(): Could not create session handle: %s in %s on line %d
23bool(false)
24
25Warning: ldap_connect(): Too many open links (1) in %s on line %d
26