1--TEST-- 2curl_multi_errno and curl_multi_strerror basic test 3--SKIPIF-- 4<?php 5if (!extension_loaded("curl")) { 6 exit("skip curl extension not loaded"); 7} 8?> 9--FILE-- 10<?php 11 12$mh = curl_multi_init(); 13$errno = curl_multi_errno($mh); 14echo $errno . PHP_EOL; 15echo curl_multi_strerror($errno) . PHP_EOL; 16 17try { 18 curl_multi_setopt($mh, -1, -1); 19} catch (ValueError $exception) { 20 echo $exception->getMessage() . "\n"; 21} 22 23$errno = curl_multi_errno($mh); 24echo $errno . PHP_EOL; 25echo curl_multi_strerror($errno) . PHP_EOL; 26?> 27--EXPECT-- 280 29No error 30curl_multi_setopt(): Argument #2 ($option) is not a valid cURL multi option 316 32Unknown option 33