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