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

1.1       misho       1: --TEST--
                      2: ldap_connect() - Variation
                      3: --CREDITS--
                      4: Patrick Allaert <patrickallaert@php.net>
                      5: # Belgian PHP Testfest 2009
                      6: --SKIPIF--
                      7: <?php require_once('skipif.inc'); ?>
                      8: --FILE--
                      9: <?php
                     10: require "connect.inc";
                     11: 
                     12: // no hostname, no port
                     13: $link = ldap_connect();
                     14: var_dump($link);
                     15: 
                     16: // no port
                     17: $link = ldap_connect($host);
                     18: var_dump($link);
                     19: 
                     20: // URI
                     21: $link = ldap_connect("ldap://$host:$port");
                     22: var_dump($link);
                     23: 
                     24: // URI no port
                     25: $link = ldap_connect("ldap://$host");
                     26: var_dump($link);
                     27: 
                     28: // bad hostname (connect should work, not bind)
                     29: $link = ldap_connect("nonexistent" . $host);
                     30: var_dump($link);
                     31: ?>
                     32: ===DONE===
                     33: --EXPECTF--
                     34: resource(%d) of type (ldap link)
                     35: resource(%d) of type (ldap link)
                     36: resource(%d) of type (ldap link)
                     37: resource(%d) of type (ldap link)
                     38: resource(%d) of type (ldap link)
                     39: ===DONE===

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