Files
php-src/ext/curl/tests/curl_multi_setopt_basic001.phpt
Nikita Popov 39131219e8 Migrate more SKIPIF -> EXTENSIONS (#7139)
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
2021-06-11 12:58:44 +02:00

21 lines
379 B
PHP

--TEST--
curl_multi_setopt basic test
--EXTENSIONS--
curl
--FILE--
<?php
$mh = curl_multi_init();
var_dump(curl_multi_setopt($mh, CURLMOPT_PIPELINING, 0));
try {
curl_multi_setopt($mh, -1, 0);
} catch (ValueError $exception) {
echo $exception->getMessage() . "\n";
}
?>
--EXPECT--
bool(true)
curl_multi_setopt(): Argument #2 ($option) is not a valid cURL multi option