mirror of
https://github.com/php/php-src.git
synced 2024-10-04 16:26:13 +00:00
38 lines
720 B
Plaintext
38 lines
720 B
Plaintext
|
--TEST--
|
||
|
Test function get_cfg_var() by substituting argument with array of valid parameters.
|
||
|
--CREDITS--
|
||
|
Francesco Fullone ff@ideato.it
|
||
|
#PHPTestFest Cesena Italia on 2009-06-20
|
||
|
--INI--
|
||
|
session.use_cookies=0
|
||
|
session.serialize_handler=php
|
||
|
session.save_handler=files
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
|
||
|
echo "*** Test substituting argument with array of valid parameters ***\n";
|
||
|
|
||
|
|
||
|
|
||
|
$heredoc = <<<EOT
|
||
|
hello world
|
||
|
EOT;
|
||
|
|
||
|
$variation_array = array(
|
||
|
'session.use_cookies',
|
||
|
'session.serialize_handler',
|
||
|
'session.save_handler'
|
||
|
);
|
||
|
|
||
|
|
||
|
foreach ( $variation_array as $var ) {
|
||
|
var_dump(get_cfg_var( $var ) );
|
||
|
}
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
*** Test substituting argument with array of valid parameters ***
|
||
|
unicode(1) "0"
|
||
|
unicode(3) "php"
|
||
|
unicode(5) "files"
|