mirror of
https://github.com/php/php-src.git
synced 2024-12-12 03:15:29 +08:00
21 lines
494 B
PHP
21 lines
494 B
PHP
--TEST--
|
|
ldap_start_tls() - Basic ldap_start_tls test
|
|
--CREDITS--
|
|
Patrick Allaert <patrickallaert@php.net>
|
|
# Belgian PHP Testfest 2009
|
|
--SKIPIF--
|
|
<?php require_once dirname(__FILE__) .'/skipif.inc'; ?>
|
|
<?php require_once dirname(__FILE__) .'/skipifbindfailure.inc'; ?>
|
|
--FILE--
|
|
<?php
|
|
require "connect.inc";
|
|
|
|
$link = ldap_connect($host, $port);
|
|
ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
|
|
var_dump(ldap_start_tls($link));
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
bool(true)
|
|
===DONE===
|