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