1--TEST--
2Test curl_version() function : error conditions
3--SKIPIF--
4<?php if (!extension_loaded("curl")) exit("skip curl extension not loaded"); ?>
5--FILE--
6<?php
7
8/* Prototype  : array curl_version  ([ int $age  ] )
9 * Description: Returns information about the cURL version.
10 * Source code: ext/curl/interface.c
11*/
12
13echo "*** Testing curl_version() : error conditions ***\n";
14
15echo "\n-- Testing curl_version() function with more than expected no. of arguments --\n";
16$extra_arg = 10;
17var_dump( curl_version(1, $extra_arg) );
18
19?>
20===Done===
21--EXPECTF--
22*** Testing curl_version() : error conditions ***
23
24-- Testing curl_version() function with more than expected no. of arguments --
25
26Warning: curl_version() expects at most 1 parameter, 2 given in %s on line %d
27NULL
28===Done===
29