summaryrefslogtreecommitdiff
path: root/ext/ldap/tests/ldap_set_option_reqcert_error.phpt
blob: b23d445955edb251dfd28094f5029e6d989e56ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
ldap_option_reqcert_basic() - Error test for TLS require cert ldap option
--CREDITS--
Edwin Hoksberg <edwin@edwinhoksberg.nl>
--SKIPIF--
<?php require_once __DIR__ .'/skipif.inc'; ?>
--FILE--
<?php
require "connect.inc";
$link = ldap_connect($host, $port);
$result = ldap_set_option($link, LDAP_OPT_X_TLS_REQUIRE_CERT, 9001);
var_dump($result);
?>
--EXPECT--
bool(false)