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

25 lines
358 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');
?>
2009-04-25 21:12:23 +00:00
--EXPECTF--
2009-02-02 19:25:30 +00:00
array(1) {
2009-04-25 21:12:23 +00:00
[%u|b%"part1.*.part2"]=>
%unicode|string%(1) "1"
2009-02-02 19:25:30 +00:00
}