1--TEST-- 2curl_setopt() basic parameter test 3--CREDITS-- 4Paul Sohier 5#phptestfest utrecht 6--SKIPIF-- 7<?php if (!extension_loaded("curl")) print "skip"; ?> 8--FILE-- 9<?php 10echo "*** curl_setopt() call with incorrect parameters\n"; 11$ch = curl_init(); 12curl_setopt(); 13curl_setopt(false); 14 15curl_setopt($ch); 16curl_setopt($ch, false); 17curl_setopt($ch, -10); 18curl_setopt($ch, ''); 19curl_setopt($ch, 1, false); 20 21curl_setopt(false, false, false); 22curl_setopt($ch, '', false); 23curl_setopt($ch, 1, ''); 24curl_setopt($ch, -10, 0); 25?> 26--EXPECTF-- 27*** curl_setopt() call with incorrect parameters 28 29Warning: curl_setopt() expects exactly 3 parameters, 0 given in %s on line %d 30 31Warning: curl_setopt() expects exactly 3 parameters, 1 given in %s on line %d 32 33Warning: curl_setopt() expects exactly 3 parameters, 1 given in %s on line %d 34 35Warning: curl_setopt() expects exactly 3 parameters, 2 given in %s on line %d 36 37Warning: curl_setopt() expects exactly 3 parameters, 2 given in %s on line %d 38 39Warning: curl_setopt() expects exactly 3 parameters, 2 given in %s on line %d 40 41Warning: curl_setopt() expects parameter 1 to be resource, boolean given in %s on line %d 42 43Warning: curl_setopt() expects parameter 2 to be long, %unicode_string_optional% given in %s on line %d 44 45Warning: curl_setopt(): Invalid curl configuration option in %scurl_setopt_error.php on line %d 46