1--TEST--
2ldap_get_option() - Basic ldap_get_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;
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===DONE===
22--EXPECT--
23bool(true)
24int(3)
25===DONE===
26