php-src/ext/standard/tests/file/bug46347.phpt

25 lines
342 B
Plaintext
Raw Normal View History

2009-02-02 19:25:30 +00:00
--TEST--
Bug #46347 (parse_ini_file() doesn't support * in keys)
--FILE--
<?php
$str = <<< EOF
[section]
part1.*.part2 = 1
EOF;
$file = __DIR__ . '/parse.ini';
file_put_contents($file, $str);
var_dump(parse_ini_file($file));
?>
--CLEAN--
<?php
unlink(__DIR__.'/parse.ini');
?>
--EXPECT--
array(1) {
["part1.*.part2"]=>
string(1) "1"
}