Annotation of embedaddon/php/ext/ldap/tests/ldap_connect_error.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: ldap_connect() - Connection errors
                      3: --CREDITS--
                      4: Patrick Allaert <patrickallaert@php.net>
                      5: # Belgian PHP Testfest 2009
                      6: --INI--
                      7: ldap.max_links=1
                      8: --SKIPIF--
                      9: <?php require_once('skipif.inc'); ?>
                     10: --FILE--
                     11: <?php
                     12: require "connect.inc";
                     13: 
                     14: // too many arguments
                     15: var_dump(ldap_connect(null, null, null));
                     16: var_dump(ldap_connect("ldap://$host:$port/dc=my-domain,dc=com"));
                     17: 
                     18: $links = array();
                     19: $links[0] = ldap_connect($host, $port);
                     20: $links[1] = ldap_connect($host, $port);
                     21: ?>
                     22: ===DONE===
                     23: --EXPECTF--
                     24: Warning: ldap_connect() expects at most 2 parameters, 3 given in %s on line %d
                     25: bool(false)
                     26: 
                     27: Warning: ldap_connect(): Could not create session handle: %s in %s on line %d
                     28: bool(false)
                     29: 
                     30: Warning: ldap_connect(): Too many open links (1) in %s on line %d
                     31: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>