2012-12-23 19:59:41 +00:00
|
|
|
--TEST--
|
|
|
|
curl_multi_setopt basic test
|
|
|
|
--SKIPIF--
|
2012-12-26 05:43:37 +00:00
|
|
|
<?php
|
2012-12-23 19:59:41 +00:00
|
|
|
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");
|
|
|
|
}
|
2012-12-26 05:43:37 +00:00
|
|
|
?>
|
2012-12-23 19:59:41 +00:00
|
|
|
--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)
|