1--TEST--
2ldap_get_option() - Basic test for getting the TLS package ldap option
3--CREDITS--
4Chad Sikorra <Chad.Sikorra@gmail.com>
5--SKIPIF--
6<?php require_once('skipif.inc'); ?>
7--FILE--
8<?php
9require "connect.inc";
10$link = ldap_connect($host, $port);
11
12$result = ldap_get_option($link, LDAP_OPT_X_TLS_PACKAGE, $optionval);
13var_dump(in_array($optionval, ['GnuTLS', 'OpenSSL', 'MozNSS']));
14// This is a read-only option.
15var_dump(ldap_set_option($link, LDAP_OPT_X_TLS_PACKAGE, 'foo'));
16?>
17===DONE===
18--EXPECT--
19bool(true)
20bool(false)
21===DONE===
22