php-src/ext/ldap/tests/ldap_connect_error.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

25 lines
582 B
PHP

--TEST--
ldap_connect() - Connection errors
--CREDITS--
Patrick Allaert <patrickallaert@php.net>
# Belgian PHP Testfest 2009
--INI--
ldap.max_links=1
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
require "connect.inc";
// too many arguments
var_dump(ldap_connect("ldap://$host:$port/$base"));
$links = array();
$links[0] = ldap_connect($host, $port);
$links[1] = ldap_connect($host, $port);
?>
--EXPECTF--
Warning: ldap_connect(): Could not create session handle: %s in %s on line %d
bool(false)
Warning: ldap_connect(): Too many open links (1) in %s on line %d