mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
24 lines
497 B
PHP
24 lines
497 B
PHP
--TEST--
|
|
ldap_set_option() - Basic ldap_set_option() operation
|
|
--CREDITS--
|
|
Patrick Allaert <patrickallaert@php.net>
|
|
# Belgian PHP Testfest 2009
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
require "connect.inc";
|
|
|
|
$link = ldap_connect($host, $port);
|
|
$option = null;
|
|
|
|
var_dump(ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version));
|
|
ldap_get_option($link, LDAP_OPT_PROTOCOL_VERSION, $option);
|
|
var_dump($option);
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
bool(true)
|
|
int(3)
|
|
===DONE===
|