mirror of
https://github.com/php/php-src.git
synced 2026-04-23 16:08:35 +02:00
39131219e8
This is a mix of more automated and manual migration. It should remove all applicable extension_loaded() checks outside of skipif.inc files.
23 lines
462 B
PHP
23 lines
462 B
PHP
--TEST--
|
|
curl_share_setopt basic test
|
|
--EXTENSIONS--
|
|
curl
|
|
--FILE--
|
|
<?php
|
|
|
|
$sh = curl_share_init();
|
|
var_dump(curl_share_setopt($sh, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE));
|
|
var_dump(curl_share_setopt($sh, CURLSHOPT_UNSHARE, CURL_LOCK_DATA_DNS));
|
|
|
|
try {
|
|
curl_share_setopt($sh, -1, 0);
|
|
} catch (ValueError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(true)
|
|
curl_share_setopt(): Argument #2 ($option) is not a valid cURL share option
|