Annotation of embedaddon/php/ext/standard/tests/file/bug46347.phpt, revision 1.1.1.1

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>