summaryrefslogtreecommitdiff
path: root/ext/curl/tests/curl_share_setopt_basic001.phpt
blob: 33c03e3337e338154ab32e0eaecf5300b374de68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--TEST--
curl_share_setopt basic test
--SKIPIF--
<?php
if (!extension_loaded("curl")) {
	    exit("skip curl extension not loaded");
}
?>
--FILE--
<?php

$sh = curl_share_init();
var_dump(curl_share_setopt($sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE));
var_dump(curl_share_setopt($sh, CURLSHOPT_UNSHARE, CURL_LOCK_DATA_DNS));
var_dump(curl_share_setopt($sh, -1, 0));

?>
--EXPECTF--
bool(true)
bool(true)

Warning: curl_share_setopt(): Invalid curl share configuration option in %s on line %d
bool(false)