1--TEST--
2ldap_set_option() - Basic ldap_set_option() operation
3--CREDITS--
4Patrick Allaert <patrickallaert@php.net>
5# Belgian PHP Testfest 2009
6--SKIPIF--
7<?php require_once('skipif.inc'); ?>
8--FILE--
9<?php
10require "connect.inc";
11
12$link = ldap_connect($host, $port);
13$option = null;
14
15var_dump(ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version));
16ldap_get_option($link, LDAP_OPT_PROTOCOL_VERSION, $option);
17var_dump($option);
18?>
19--EXPECT--
20bool(true)
21int(3)
22