mirror of
https://github.com/php/php-src.git
synced 2026-04-24 16:38:25 +02:00
c5401854fc
This should fix most of the remaining issues with tabs and spaces being mixed in tests.
25 lines
462 B
PHP
25 lines
462 B
PHP
--TEST--
|
|
curl_multi_setopt basic test
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("curl")) {
|
|
exit("skip curl extension not loaded");
|
|
}
|
|
?>
|
|
--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
|