xref: /PHP-7.1/ext/standard/tests/file/bug46347.phpt (revision 1bef7308)
1--TEST--
2Bug #46347 (parse_ini_file() doesn't support * in keys)
3--FILE--
4<?php
5
6$str = <<< EOF
7[section]
8part1.*.part2 = 1
9EOF;
10
11$file = __DIR__ . '/parse.ini';
12file_put_contents($file, $str);
13
14var_dump(parse_ini_file($file));
15?>
16--CLEAN--
17<?php
18unlink(__DIR__.'/parse.ini');
19?>
20--EXPECTF--
21array(1) {
22  [%u|b%"part1.*.part2"]=>
23  %unicode|string%(1) "1"
24}
25