mirror of
https://github.com/php/php-src.git
synced 2024-12-14 20:33:36 +08:00
22 lines
543 B
PHP
22 lines
543 B
PHP
--TEST--
|
|
ldap_get_option() - Basic test for getting the TLS package ldap option
|
|
--CREDITS--
|
|
Chad Sikorra <Chad.Sikorra@gmail.com>
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
require "connect.inc";
|
|
$link = ldap_connect($host, $port);
|
|
|
|
$result = ldap_get_option($link, LDAP_OPT_X_TLS_PACKAGE, $optionval);
|
|
var_dump(in_array($optionval, ['GnuTLS', 'OpenSSL', 'MozNSS']));
|
|
// This is a read-only option.
|
|
var_dump(ldap_set_option($link, LDAP_OPT_X_TLS_PACKAGE, 'foo'));
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(false)
|
|
===DONE===
|