1--TEST--
2curl_multi_setopt basic test
3--SKIPIF--
4<?php
5if (!extension_loaded("curl")) {
6        exit("skip curl extension not loaded");
7}
8?>
9--FILE--
10<?php
11
12$mh = curl_multi_init();
13var_dump(curl_multi_setopt($mh, CURLMOPT_PIPELINING, 0));
14
15try {
16    curl_multi_setopt($mh, -1, 0);
17} catch (ValueError $exception) {
18    echo $exception->getMessage() . "\n";
19}
20
21?>
22--EXPECT--
23bool(true)
24curl_multi_setopt(): Argument #2 ($option) is not a valid cURL multi option
25