Annotation of embedaddon/php/ext/standard/tests/general_functions/get_cfg_var_variation3.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test function get_cfg_var() by substituting argument 1 with emptyUnsetUndefNull values.
3: --CREDITS--
4: Francesco Fullone ff@ideato.it
5: #PHPTestFest Cesena Italia on 2009-06-20
6: --INI--
7: session.use_cookies=0
8: session.serialize_handler=php
9: session.save_handler=files
10: --FILE--
11: <?php
12:
13:
14: echo "*** Test substituting argument 1 with emptyUnsetUndefNull values ***\n";
15:
16:
17:
18: $unset_var = 10;
19: unset($unset_var);
20:
21: $variation_array = array(
22: 'unset var' => @$unset_var,
23: 'undefined var' => @$undefined_var,
24: 'empty string DQ' => "",
25: 'empty string SQ' => '',
26: 'uppercase NULL' => NULL,
27: 'lowercase null' => null
28: );
29:
30:
31: foreach ( $variation_array as $var ) {
32: var_dump(get_cfg_var( $var ) );
33: }
34: ?>
35: --EXPECTF--
36: *** Test substituting argument 1 with emptyUnsetUndefNull values ***
37: bool(false)
38: bool(false)
39: bool(false)
40: bool(false)
41: bool(false)
42: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>