1--TEST--
2Test get_defined_functions() function : error conditions
3--FILE--
4<?php
5
6/* Prototype  : array get_defined_functions  ( $exclude_disabled = false )
7 * Description: Gets an array of all defined functions.
8 * Source code: Zend/zend_builtin_functions.c
9*/
10
11
12echo "*** Testing get_defined_functions() : error conditions ***\n";
13
14
15echo "\n-- Testing get_defined_functions() function with more than expected no. of arguments --\n";
16$extra_arg = 10;
17$extra_arg2 = 20;
18var_dump( get_defined_functions($extra_arg, $extra_arg2) );
19
20?>
21===Done===
22--EXPECTF--
23*** Testing get_defined_functions() : error conditions ***
24
25-- Testing get_defined_functions() function with more than expected no. of arguments --
26
27Warning: get_defined_functions() expects at most 1 parameter, 2 given in %s on line %d
28NULL
29===Done===
30