mirror of
https://github.com/php/php-src.git
synced 2026-04-18 05:21:02 +02:00
libcurl 7.29.0 has been released almost eight years ago, so this version is supposed to be available practically everywhere. This bump also allows us to get rid of quite some conditional code and tests catering to very old libcurl versions.
22 lines
405 B
PHP
22 lines
405 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));
|
|
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)
|