|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-11-15 23:46 UTC] felipe@php.net
[2011-11-15 23:46 UTC] felipe@php.net
-Status: Open
+Status: Bogus
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 08 11:00:01 2025 UTC |
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" }