xref: /PHP-8.0/ext/standard/tests/file/bug46347.phpt (revision ded3d984)
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--EXPECT--
21array(1) {
22  ["part1.*.part2"]=>
23  string(1) "1"
24}
25