1--TEST-- 2Bug #41445 (parse_ini_file() function parses octal numbers in section names) - 2 3--FILE-- 4<?php 5 6$file = dirname(__FILE__)."/bug41445.ini"; 7 8$data = <<<DATA 9[2454.33] 1009 = yes 11 12[9876543] 13098765434567876543 = yes 14 15[09876543] 16987654345678765432456798765434567876543 = yes 17DATA; 18 19file_put_contents($file, $data); 20 21var_dump(parse_ini_file($file, TRUE)); 22var_dump(parse_ini_file($file)); 23 24@unlink($file); 25 26echo "Done\n"; 27?> 28--EXPECTF-- 29array(3) { 30 ["2454.33"]=> 31 array(1) { 32 ["09"]=> 33 string(1) "1" 34 } 35 [9876543]=> 36 array(1) { 37 ["098765434567876543"]=> 38 string(1) "1" 39 } 40 ["09876543"]=> 41 array(1) { 42 ["987654345678765432456798765434567876543"]=> 43 string(1) "1" 44 } 45} 46array(3) { 47 ["09"]=> 48 string(1) "1" 49 ["098765434567876543"]=> 50 string(1) "1" 51 ["987654345678765432456798765434567876543"]=> 52 string(1) "1" 53} 54Done 55