mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
26 lines
491 B
PHP
26 lines
491 B
PHP
--TEST--
|
|
ldap_get_option() - Basic ldap_get_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;
|
|
ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version);
|
|
|
|
var_dump(
|
|
ldap_get_option($link, LDAP_OPT_PROTOCOL_VERSION, $option),
|
|
$option
|
|
);
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
bool(true)
|
|
int(3)
|
|
===DONE===
|