1--TEST-- 2curl_share_errno and curl_share_strerror basic test 3--EXTENSIONS-- 4curl 5--FILE-- 6<?php 7 8$sh = curl_share_init(); 9$errno = curl_share_errno($sh); 10echo $errno . PHP_EOL; 11echo curl_share_strerror($errno) . PHP_EOL; 12 13try { 14 curl_share_setopt($sh, -1, -1); 15} catch (ValueError $e) { 16 echo $e->getMessage(), "\n"; 17} 18 19$errno = curl_share_errno($sh); 20echo $errno . PHP_EOL; 21echo curl_share_strerror($errno) . PHP_EOL; 22?> 23--EXPECT-- 240 25No error 26curl_share_setopt(): Argument #2 ($option) is not a valid cURL share option 271 28Unknown share option 29