1--TEST--
2Test get_extension_funcs() function : error conditions
3--FILE--
4<?php
5/* Prototype  : array get_extension_funcs  ( string $module_name  )
6 * Description: Returns an array with the names of the functions of a module.
7 * Source code: Zend/zend_builtin_functions.c
8 * Alias to functions:
9 */
10
11echo "*** Testing get_extension_funcs() : error conditions ***\n";
12
13echo "\n-- Too few arguments --\n";
14var_dump(get_extension_funcs());
15
16$extra_arg = 1;
17echo "\n-- Too many arguments --\n";
18var_dump(get_extension_funcs("standard", $extra_arg));
19
20echo "\n-- Invalid extension name --\n";
21var_dump(get_extension_funcs("foo"));
22
23?>
24===DONE===
25--EXPECTF--
26*** Testing get_extension_funcs() : error conditions ***
27
28-- Too few arguments --
29
30Warning: get_extension_funcs() expects exactly 1 parameter, 0 given in %s on line %d
31NULL
32
33-- Too many arguments --
34
35Warning: get_extension_funcs() expects exactly 1 parameter, 2 given in %s on line %d
36NULL
37
38-- Invalid extension name --
39bool(false)
40===DONE===
41