mirror of
https://github.com/php/php-src.git
synced 2024-10-04 08:16:11 +00:00
25 lines
342 B
Plaintext
25 lines
342 B
Plaintext
|
--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"
|
||
|
}
|