blob: a13cf6d7160b3e487f3da958af35de6c3c4299c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
--TEST--
curl_multi_setopt basic test
--SKIPIF--
<?php
if (!extension_loaded("curl")) {
exit("skip curl extension not loaded");
}
$curl_version = curl_version();
if ($curl_version['version_number'] < 0x071000) {
exit("skip: test works only with curl >= 7.16.0");
}
?>
--FILE--
<?php
$mh = curl_multi_init();
var_dump(curl_multi_setopt($mh, CURLMOPT_PIPELINING, 0));
var_dump(curl_multi_setopt($mh, -1, 0));
?>
--EXPECTF--
bool(true)
Warning: curl_multi_setopt(): Invalid curl multi configuration option in %s on line %d
bool(false)
|