1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/standard/tests/file/bug46347.phpt
Niels Dossche 21c2c07a24 Fix GH-19998: ext/standard/tests/file/bug46347.phpt sometimes fails: racy in parallel
The same test file name is already used in parse_ini_file.phpt.

Closes GH-20000.
2025-09-30 10:52:59 +02:00

25 lines
348 B
PHP

--TEST--
Bug #46347 (parse_ini_file() doesn't support * in keys)
--FILE--
<?php
$str = <<< EOF
[section]
part1.*.part2 = 1
EOF;
$file = __DIR__ . '/bug46347.ini';
file_put_contents($file, $str);
var_dump(parse_ini_file($file));
?>
--CLEAN--
<?php
unlink(__DIR__.'/bug46347.ini');
?>
--EXPECT--
array(1) {
["part1.*.part2"]=>
string(1) "1"
}