You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Stdlib: parse_ini_string()/parse_ini_file() — INI_SCANNER_RAW and INI_SCANNER_TYPED parity (ext/standard/ini.c) #9153
parse_ini_string($ini, false, INI_SCANNER_TYPED) silently returns string values ('42', '3.14', '1') instead of typed int/float/bool. INI_SCANNER_RAW is also accepted but behaves like INI_SCANNER_NORMAL.
ParseIniEngine documents RAW/TYPED as deferred (#3263 closed with NORMAL-only v1); callers get wrong types without error — php-src-strict mismatch.
Activity
PurHur commentedon Jul 4, 2026
claim: worker-lane-a — starting this run
Implement INI_SCANNER_RAW and INI_SCANNER_TYPED for parse_ini_* (#9153)…
PurHur commentedon Jul 4, 2026
Merged via #15880.
Fix:
ParseIniEnginenow applies scanner-mode post-processing — RAW keeps unquoted RHS literal, TYPED coerces int/float/bool/null; invalid mode warns and returns false.Verification:
Repro prints
ok; PHPUnit OK (2 tests).