1--TEST--
2Test get_defined_constants() function : error conditions
3--FILE--
4<?php
5/* Prototype  : array get_defined_constants  ([ bool $categorize  ] )
6 * Description:  Returns an associative array with the names of all the constants and their values
7 * Source code: Zend/zend_builtin_functions.c
8 */
9
10echo "*** Testing get_defined_constants() : error conditions ***\n";
11
12echo "\n-- Testing get_defined_constants() function with more than expected no. of arguments --\n";
13$extra_arg = 10;
14var_dump( get_defined_constants(true, $extra_arg) );
15
16?>
17===DONE===
18--EXPECTF--
19*** Testing get_defined_constants() : error conditions ***
20
21-- Testing get_defined_constants() function with more than expected no. of arguments --
22
23Warning: get_defined_constants() expects at most 1 parameter, 2 given in %s on line 11
24NULL
25===DONE===
26