php-src/ext/standard/tests/file/bug46347.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

25 lines
342 B
PHP

--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"
}