1--TEST-- 2Test function get_cfg_var() by substituting argument 1 with emptyUnsetUndefNull values. 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 13 14echo "*** Test substituting argument 1 with emptyUnsetUndefNull values ***\n"; 15 16 17 18$unset_var = 10; 19unset($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 31foreach ( $variation_array as $var ) { 32 var_dump(get_cfg_var( $var ) ); 33} 34?> 35--EXPECT-- 36*** Test substituting argument 1 with emptyUnsetUndefNull values *** 37bool(false) 38bool(false) 39bool(false) 40bool(false) 41bool(false) 42bool(false) 43