Return to get_cfg_var_variation5.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / general_functions |
1.1 misho 1: --TEST-- 2: Test function get_cfg_var() by substituting argument 1 with int 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 int values ***\n"; 15: 16: 17: 18: $variation_array = array ( 19: 'int 0' => 0, 20: 'int 1' => 1, 21: 'int 12345' => 12345, 22: 'int -12345' => -2345, 23: ); 24: 25: 26: foreach ( $variation_array as $var ) { 27: var_dump(get_cfg_var( $var ) ); 28: } 29: ?> 30: --EXPECTF-- 31: *** Test substituting argument 1 with int values *** 32: bool(false) 33: bool(false) 34: bool(false) 35: bool(false)