PHP 5.3 added a $scanner_mode
parameter to parse_ini_file()
. What is it?
The documentation isn't very useful:
scanner_mode
Can either be
INI_SCANNER_NORMAL
(default) orINI_SCANNER_RAW
. IfINI_SCANNER_RAW
is supplied, then option values will not be parsed.
What is an "option value" in this context?
I believe RAW will not do any parsing of the values, so "on"/"off" will not be understood as true/false and would require using "1" and "0"
"option" in this case, I think refers to the value of each ini key/value pair.