php-src/ext/ldap/tests/ldap_set_option_basic.phpt
2009-07-03 09:20:50 +00:00

24 lines
497 B
PHP

--TEST--
ldap_set_option() - Basic ldap_set_option() operation
--CREDITS--
Patrick Allaert <patrickallaert@php.net>
# Belgian PHP Testfest 2009
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
require "connect.inc";
$link = ldap_connect($host, $port);
$option = null;
var_dump(ldap_set_option($link, LDAP_OPT_PROTOCOL_VERSION, $protocol_version));
ldap_get_option($link, LDAP_OPT_PROTOCOL_VERSION, $option);
var_dump($option);
?>
===DONE===
--EXPECT--
bool(true)
int(3)
===DONE===