source: src/router/php7/ext/ldap/tests/ldap_set_option_keepalive_basic.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 4 months ago

update php

File size: 589 bytes
Line 
1--TEST--
2ldap_set_option() - Basic test for TCP keepalive ldap options
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
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===DONE===
25--EXPECT--
26bool(true)
27int(5)
28bool(true)
29int(5)
30bool(true)
31int(5)
32===DONE===
Note: See TracBrowser for help on using the repository browser.