From: Operating system: OSX 10.6 PHP version: 5.3.5 Package: Filesystem function related Bug Type: Bug Bug description:INI_SCANNER_RAW and parse_ini_file still doesnt return proper values
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 bug report at http://bugs.php.net/bug.php?id=54057&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54057&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54057&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54057&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54057&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54057&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54057&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54057&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54057&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54057&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54057&r=support Expected behavior: http://bugs.php.net/fix.php?id=54057&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54057&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54057&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54057&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54057&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=54057&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54057&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54057&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54057&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54057&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54057&r=mysqlcfg