Edit report at https://bugs.php.net/bug.php?id=54057&edit=1
ID: 54057 Updated by: [email protected] Reported by: electroteque at gmail dot com Summary: INI_SCANNER_RAW and parse_ini_file still doesnt return proper values -Status: Open +Status: Bogus Type: Bug Package: Filesystem function related Operating System: OSX 10.6 PHP Version: 5.3.5 Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php To reach what you want, you need to use: package[prop1] = true package[prop2] = 100 Previous Comments: ------------------------------------------------------------------------ [2011-02-21 02:55:28] electroteque at gmail dot com Description: ------------ An ini config with values like package.prop1 = true package.prop2 = 100 Are supposed to be returned as boolean and numbers but are not. This is a bit of an oversight perhaps ? Your bug system is also buggy, I clicked submit it tried to bring up a list of bug reports, and it removes the package affected selection and the captcha has to be put back in. Test script: --------------- $iniArray = parse_ini_file($filename, true, INI_SCANNER_RAW); Expected result: ---------------- array(1) { ["package"]=> array(2) { ["prop1"]=> bool(true) ["prop2"]=> int(100) } } Actual result: -------------- array(2) { ["prop1"]=> string(4) "true" ["prop2"]=> string(3) "100" } ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=54057&edit=1
