Return to bug46347.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / file |
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: }