File:
[ELWIX - Embedded LightWeight unIX -] /
embedaddon /
php /
ext /
ldap /
tests /
ldap_connect_variation.phpt
Revision
1.1.1.1 (vendor branch):
download - view:
text,
annotated -
select for diffs -
revision graph
Tue Feb 21 23:47:57 2012 UTC (12 years, 6 months ago) by
misho
Branches:
php,
MAIN
CVS tags:
v5_4_3elwix,
v5_4_29p0,
v5_4_29,
v5_4_20p0,
v5_4_20,
v5_4_17p0,
v5_4_17,
v5_3_10,
HEAD
php
--TEST--
ldap_connect() - Variation
--CREDITS--
Patrick Allaert <patrickallaert@php.net>
# Belgian PHP Testfest 2009
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
require "connect.inc";
// no hostname, no port
$link = ldap_connect();
var_dump($link);
// no port
$link = ldap_connect($host);
var_dump($link);
// URI
$link = ldap_connect("ldap://$host:$port");
var_dump($link);
// URI no port
$link = ldap_connect("ldap://$host");
var_dump($link);
// bad hostname (connect should work, not bind)
$link = ldap_connect("nonexistent" . $host);
var_dump($link);
?>
===DONE===
--EXPECTF--
resource(%d) of type (ldap link)
resource(%d) of type (ldap link)
resource(%d) of type (ldap link)
resource(%d) of type (ldap link)
resource(%d) of type (ldap link)
===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>