1--TEST--
2Test function get_cfg_var() by calling it more than or less than its expected arguments
3--CREDITS--
4Francesco Fullone ff@ideato.it
5#PHPTestFest Cesena Italia on 2009-06-20
6--INI--
7session.use_cookies=0
8session.serialize_handler=php
9session.save_handler=files
10--FILE--
11<?php
12
13echo "*** Test by calling method or function with incorrect numbers of arguments ***\n";
14
15var_dump(get_cfg_var( 'session.use_cookies', 'session.serialize_handler' ) );
16var_dump(get_cfg_var(  ) );
17
18
19?>
20--EXPECTF--
21*** Test by calling method or function with incorrect numbers of arguments ***
22
23Warning: get_cfg_var() expects exactly 1 parameter, 2 given in %s on line %d
24NULL
25
26Warning: get_cfg_var() expects exactly 1 parameter, 0 given in %s on line %d
27NULL
28