Annotation of embedaddon/php/ext/standard/tests/general_functions/get_cfg_var_variation4.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test function get_cfg_var() by substituting argument 1 with float 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 float values ***\n";
15:
16:
17:
18: $variation_array = array(
19: 'float 10.5' => 10.5,
20: 'float -10.5' => -10.5,
21: 'float 12.3456789000e10' => 12.3456789000e10,
22: 'float -12.3456789000e10' => -12.3456789000e10,
23: 'float .5' => .5,
24: );
25:
26:
27: foreach ( $variation_array as $var ) {
28: var_dump(get_cfg_var( $var ) );
29: }
30: ?>
31: --EXPECTF--
32: *** Test substituting argument 1 with float values ***
33: bool(false)
34: bool(false)
35: bool(false)
36: bool(false)
37: bool(false)
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>