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