1--TEST--
2ldap_set_option() - Basic test for TCP keepalive ldap options
3--CREDITS--
4Chad Sikorra <Chad.Sikorra@gmail.com>
5--EXTENSIONS--
6ldap
7--FILE--
8<?php
9require "connect.inc";
10$link = ldap_connect($uri);
11
12foreach([
13    LDAP_OPT_X_KEEPALIVE_IDLE,
14    LDAP_OPT_X_KEEPALIVE_PROBES,
15    LDAP_OPT_X_KEEPALIVE_INTERVAL,
16] as $option) {
17    $result = ldap_set_option($link, $option, 5);
18    var_dump($result);
19
20    ldap_get_option($link, $option, $optionval);
21    var_dump($optionval);
22}
23?>
24--EXPECT--
25bool(true)
26int(5)
27bool(true)
28int(5)
29bool(true)
30int(5)
31